浏览代码

Merge pull request #17201 from nextcloud/fix/tiny_authentication_bug_mostly_affecting_french_people

Use the actual password to update the tokens
tags/v18.0.0beta1
Roeland Jago Douma 4 年前
父节点
当前提交
3a9a4f648f
没有帐户链接到提交者的电子邮件

+ 1
- 1
lib/private/Authentication/Login/CreateSessionTokenCommand.php 查看文件

@@ -59,7 +59,7 @@ class CreateSessionTokenCommand extends ALoginCommand {
);
$this->userSession->updateTokens(
$loginData->getUser()->getUID(),
$loginData->getUsername()
$loginData->getPassword()
);

return $this->processNextOrFinishSuccessfully($loginData);

+ 2
- 2
tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php 查看文件

@@ -76,7 +76,7 @@ class CreateSessionTokenCommandTest extends ALoginCommandTest {
->method('updateTokens')
->with(
$this->username,
$this->username
$this->password
);

$result = $this->cmd->process($data);
@@ -109,7 +109,7 @@ class CreateSessionTokenCommandTest extends ALoginCommandTest {
->method('updateTokens')
->with(
$this->username,
$this->username
$this->password
);

$result = $this->cmd->process($data);

正在加载...
取消
保存