Merge pull request #7698 from nextcloud/fix_7697

Clear login token once apppassword is generated
This commit is contained in:
Morris Jobke 2018-01-04 16:53:57 +01:00 committed by GitHub
commit 9c2660e22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -319,6 +319,9 @@ class ClientFlowLoginController extends Controller {
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token); $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); return new Http\RedirectResponse($redirectUri);
} }
} }