forked from External/greenlight
Fixed issue with image being replaced on every sign in (#687)
This commit is contained in:
parent
05614bbae4
commit
ee0a339e2b
|
@ -75,7 +75,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!
|
||||
u
|
||||
|
|
Loading…
Reference in New Issue