Browse Source

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>
tags/v13.0.0beta4
Roeland Jago Douma 6 years ago
parent
commit
82f03e1314
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      core/Controller/ClientFlowLoginController.php

+ 3
- 0
core/Controller/ClientFlowLoginController.php View File

@@ -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…
Cancel
Save