Session variable needs to be removed afterwards
This commit is contained in:
parent
6ca42512e9
commit
a23d108fa7
|
@ -64,6 +64,8 @@ class Authorize extends BaseApi
|
||||||
DI::app()->redirect('oauth/acknowledge?return_path=' . $redirect);
|
DI::app()->redirect('oauth/acknowledge?return_path=' . $redirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DI::session()->remove('oauth_acknowledge');
|
||||||
|
|
||||||
$token = self::createTokenForUser($application, $uid);
|
$token = self::createTokenForUser($application, $uid);
|
||||||
if (!$token) {
|
if (!$token) {
|
||||||
DI::mstdnError()->RecordNotFound();
|
DI::mstdnError()->RecordNotFound();
|
||||||
|
|
Loading…
Reference in a new issue