Merge pull request #7698 from nextcloud/fix_7697
Clear login token once apppassword is generated
This commit is contained in:
commit
9c2660e22c
|
@ -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 New Issue