We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f9846 commit dcccac5Copy full SHA for dcccac5
app/controllers/auths_controller.rb
@@ -27,6 +27,7 @@ def show
27
end
28
29
user = User.find_by(login: params[:username])
30
+ user ||= User.find_by('lower(email) = ?', params[:username].downcase)
31
msg = if user && params[:password].present? && user.has_password?(params[:password])
32
OK_MESSAGE
33
else
0 commit comments