Session variable needs to be removed afterwards

This commit is contained in:
Michael 2021-05-12 06:51:59 +00:00
parent 6ca42512e9
commit a23d108fa7
1 changed files with 2 additions and 0 deletions

View 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();