Skip to content
Snippets Groups Projects

Repeat SSO user lookup by emails in username/nickname fields

Merged Andrej Shadura requested to merge azure-compat into collabora/staging
1 unresolved thread
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
@@ -233,6 +233,17 @@ class User < ApplicationRecord
@@ -233,6 +233,17 @@ class User < ApplicationRecord
return user
return user
end
end
 
 
username = auth['username'] || auth['nickname']
 
if username.include? '@'
 
user = find_by_email(username)
 
 
if user
 
user.mark_login!
 
 
return user
 
end
 
end
Please register or sign in to reply
end
end
end
end
Loading