From: Michael Date: Wed, 12 May 2021 06:51:59 +0000 (+0000) Subject: Session variable needs to be removed afterwards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a23d108fa715d10ed0179ff54f0d95f5224720f4;p=friendica.git Session variable needs to be removed afterwards --- diff --git a/src/Module/OAuth/Authorize.php b/src/Module/OAuth/Authorize.php index 4c2d9c0275..ffa7255329 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();