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

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