Browse Source

oauth2已登录跳转

pull/346/head
xxq250 1 year ago
parent
commit
2e773e92fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/oauth2_controller.rb

+ 1
- 1
app/controllers/oauth2_controller.rb View File

@@ -7,7 +7,7 @@ class Oauth2Controller < ApplicationController
@call_url = request.fullpath.split('call_url=').last
@app = Doorkeeper::Application.find_by(uid: client_id)
if User.current.logged?
redirect_to @call_url + "&auth=" + @user.login
redirect_to @call_url + "&auth=" + User.current.login
end
end



Loading…
Cancel
Save