fixed oauth2 code授权方式登录

This commit is contained in:
xiaoxiaoqiong 2022-07-05 15:27:10 +08:00
parent 959191c8bb
commit 14dd7a3b60
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Doorkeeper.configure do
# raise "Please configure doorkeeper resource_owner_authenticator block located in #{__FILE__}"
# Put your resource owner authentication logic here.
# Example implementation:
User.find_by(id: session[:www_user_id]) || User.find_by(login: params[:auth]) || redirect_to("/oauth2?call_url=#{request.fullpath}")
User.find_by(login: params[:auth]) || redirect_to("/oauth2?call_url=#{request.fullpath}")
end
resource_owner_from_credentials do |routes|