mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Fix OAuth sign in find by email case sensitivity (#202)
This commit is contained in:
committed by
GitHub
parent
af37df3079
commit
29224e1908
@@ -32,7 +32,7 @@ class OAuthSignInUser
|
|||||||
return nil if email.nil? or not URI::MailTo::EMAIL_REGEXP.match?(email)
|
return nil if email.nil? or not URI::MailTo::EMAIL_REGEXP.match?(email)
|
||||||
|
|
||||||
# Select existing / create new user
|
# Select existing / create new user
|
||||||
user = User.find_by(email: email)
|
user = User.find_for_authentication(email: email)
|
||||||
|
|
||||||
if user.nil?
|
if user.nil?
|
||||||
if not @o_auth.json_user_name_path.blank?
|
if not @o_auth.json_user_name_path.blank?
|
||||||
|
|||||||
Reference in New Issue
Block a user