Merge pull request #17204 from nextcloud/backport/17201/stable17

[stable17] Use the actual password to update the tokens
This commit is contained in:
Roeland Jago Douma 2019-09-19 10:07:33 +02:00 committed by GitHub
commit 3aa5e613a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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

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