Browse Source

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 years ago
parent
commit
3a9a4f648f
No account linked to committer's email address

+ 1
- 1
lib/private/Authentication/Login/CreateSessionTokenCommand.php View File

@@ -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 View File

@@ -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);

Loading…
Cancel
Save