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 1a5f83c commit e7ad6fbCopy full SHA for e7ad6fb
app/controllers/auths_controller.rb
@@ -12,6 +12,7 @@ class AuthsController < ApplicationController
12
def show
13
if params[:username].present? && params[:session_id].present?
14
user = User.find_by(login: params[:username])
15
+ user = User.find_by('lower(email) = ?', params[:username].downcase) unless user
16
# Allows using oauth2 tokens of the new api for authenticating
17
res = if user && Doorkeeper::AccessToken.find_by(resource_owner_id: user.id, token: params[:session_id])
18
OK_MESSAGE
0 commit comments