mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Clear login token once apppassword is generated
Fixes #7697 When using the new login flow a token will be generated since we login. However after that we generate yet another token to return (as we should). However we should kill the current session token as we are done with it. And will never use it again. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e655732458
commit
82f03e1314
1 changed files with 3 additions and 0 deletions
|
|
@ -319,6 +319,9 @@ class ClientFlowLoginController extends Controller {
|
|||
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
|
||||
}
|
||||
|
||||
// Clear the token from the login here
|
||||
$this->tokenProvider->invalidateToken($sessionId);
|
||||
|
||||
return new Http\RedirectResponse($redirectUri);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue