From 2e773e92fbb498c8bed966ac2cf2b655c723c867 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 16 Oct 2024 13:47:46 +0800 Subject: [PATCH] =?UTF-8?q?oauth2=E5=B7=B2=E7=99=BB=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/oauth2_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/oauth2_controller.rb b/app/controllers/oauth2_controller.rb index 1e14e88b0..11ebe587a 100644 --- a/app/controllers/oauth2_controller.rb +++ b/app/controllers/oauth2_controller.rb @@ -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