]> git.mxchange.org Git - friendica.git/commitdiff
Session variable needs to be removed afterwards
authorMichael <heluecht@pirati.ca>
Wed, 12 May 2021 06:51:59 +0000 (06:51 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 12 May 2021 06:51:59 +0000 (06:51 +0000)
src/Module/OAuth/Authorize.php

index 4c2d9c02750c98d560ecf383eb1d5c9c7b316c26..ffa7255329e345ac14b2592dda2c8a5cfe1c98ad 100644 (file)
@@ -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();