Skip to content

Commit 3aa5e61

Browse files
authored
Merge pull request #17204 from nextcloud/backport/17201/stable17
[stable17] Use the actual password to update the tokens
2 parents 89143d3 + ae4d01d commit 3aa5e61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/private/Authentication/Login/CreateSessionTokenCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function process(LoginData $loginData): LoginResult {
5959
);
6060
$this->userSession->updateTokens(
6161
$loginData->getUser()->getUID(),
62-
$loginData->getUsername()
62+
$loginData->getPassword()
6363
);
6464

6565
return $this->processNextOrFinishSuccessfully($loginData);

tests/lib/Authentication/Login/CreateSessionTokenCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testProcess() {
7676
->method('updateTokens')
7777
->with(
7878
$this->username,
79-
$this->username
79+
$this->password
8080
);
8181

8282
$result = $this->cmd->process($data);
@@ -109,7 +109,7 @@ public function testProcessDoNotRemember() {
109109
->method('updateTokens')
110110
->with(
111111
$this->username,
112-
$this->username
112+
$this->password
113113
);
114114

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

0 commit comments

Comments
 (0)