Skip to content

Commit 1254483

Browse files
ihatov08MaicolBen
authored andcommitted
Use email_provider? at sync_uid (#1243)
1 parent 7eeed86 commit 1254483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ def email_provider?
2323
end
2424

2525
def sync_uid
26-
self.uid = email if provider == 'email'
26+
self.uid = email if email_provider?
2727
end
2828
end

0 commit comments

Comments
 (0)