fixed oauth2 code授权方式登录
This commit is contained in:
parent
959191c8bb
commit
14dd7a3b60
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue