Use the actual password to update the tokens
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
28794b3782
commit
210a0554a2
|
@ -59,7 +59,7 @@ class CreateSessionTokenCommand extends ALoginCommand {
|
||||||
);
|
);
|
||||||
$this->userSession->updateTokens(
|
$this->userSession->updateTokens(
|
||||||
$loginData->getUser()->getUID(),
|
$loginData->getUser()->getUID(),
|
||||||
$loginData->getUsername()
|
$loginData->getPassword()
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->processNextOrFinishSuccessfully($loginData);
|
return $this->processNextOrFinishSuccessfully($loginData);
|
||||||
|
|
|
@ -76,7 +76,7 @@ class CreateSessionTokenCommandTest extends ALoginCommandTest {
|
||||||
->method('updateTokens')
|
->method('updateTokens')
|
||||||
->with(
|
->with(
|
||||||
$this->username,
|
$this->username,
|
||||||
$this->username
|
$this->password
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $this->cmd->process($data);
|
$result = $this->cmd->process($data);
|
||||||
|
@ -109,7 +109,7 @@ class CreateSessionTokenCommandTest extends ALoginCommandTest {
|
||||||
->method('updateTokens')
|
->method('updateTokens')
|
||||||
->with(
|
->with(
|
||||||
$this->username,
|
$this->username,
|
||||||
$this->username
|
$this->password
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $this->cmd->process($data);
|
$result = $this->cmd->process($data);
|
||||||
|
|
Loading…
Reference in New Issue