Fixed issue with image being replaced on every sign in (#687)

This commit is contained in:
farhatahmad 2019-07-24 09:14:56 -04:00 committed by Jesus Federico
parent 05614bbae4
commit ee0a339e2b
1 changed files with 1 additions and 1 deletions

View File

@ -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