GRN2-xx: Added back fix for ldap image and fixed issue with ldap redirect (Fixed #712) (#711)

* Added back fix for ldap image

* Fixed issue with ldap redirect
This commit is contained in:
farhatahmad
2019-07-31 11:35:43 -04:00
committed by Jesus Federico
parent 973c95339c
commit e0afcdec23
2 changed files with 8 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class User < ApplicationRecord
u.name = auth_name(auth) unless u.name
u.username = auth_username(auth) unless u.username
u.email = auth_email(auth)
u.image = auth_image(auth)
u.image = auth_image(auth) unless u.image
u.email_verified = true
u.save!
end