oauth2已登录跳转

This commit is contained in:
xxq250 2024-10-16 13:47:46 +08:00
parent db736cae66
commit 2e773e92fb
1 changed files with 1 additions and 1 deletions

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