From a23d108fa715d10ed0179ff54f0d95f5224720f4 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 May 2021 06:51:59 +0000 Subject: [PATCH] Session variable needs to be removed afterwards --- src/Module/OAuth/Authorize.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Module/OAuth/Authorize.php b/src/Module/OAuth/Authorize.php index 4c2d9c027..ffa725532 100644 --- a/src/Module/OAuth/Authorize.php +++ b/src/Module/OAuth/Authorize.php @@ -64,6 +64,8 @@ class Authorize extends BaseApi DI::app()->redirect('oauth/acknowledge?return_path=' . $redirect); } + DI::session()->remove('oauth_acknowledge'); + $token = self::createTokenForUser($application, $uid); if (!$token) { DI::mstdnError()->RecordNotFound();