瀏覽代碼

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 年之前
父節點
當前提交
82f03e1314
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      core/Controller/ClientFlowLoginController.php

+ 3
- 0
core/Controller/ClientFlowLoginController.php 查看文件

@@ -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…
取消
儲存