Fixed #366: Changed how GreenLight handles LDAP jpegPhoto (GRN-92) (#445)

* Fixed issue with LDAP jpegPhoto

* Update _header.html.erb
This commit is contained in:
farhatahmad
2019-04-11 11:53:32 -04:00
committed by Jesus Federico
parent 822dd27509
commit d39a11059e
4 changed files with 31 additions and 3 deletions

View File

@ -33,7 +33,6 @@ class User < ApplicationRecord
validates :name, length: { maximum: 256 }, presence: true
validates :provider, presence: true
validates :image, format: { with: /\.(png|jpg)\Z/i }, allow_blank: true
validates :email, length: { maximum: 256 }, allow_blank: true,
uniqueness: { case_sensitive: false, scope: :provider },
format: { with: /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i }