From ee0a339e2bc3f49289b9150894ce30a53c20ed37 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Wed, 24 Jul 2019 09:14:56 -0400 Subject: [PATCH] Fixed issue with image being replaced on every sign in (#687) --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index a92a87b8..fd9ecefd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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