Fix GH-33187

$this->userId is null when loggedin via app password.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2022-12-02 17:55:21 +01:00 committed by backportbot-nextcloud[bot]
parent 7b1f031ae0
commit a3cd174b44

View file

@ -216,7 +216,7 @@ class ClientFlowLoginV2Controller extends Controller {
return $response;
}
$result = $this->loginFlowV2Service->flowDoneWithAppPassword($loginToken, $this->getServerPath(), $this->userId, $password);
$result = $this->loginFlowV2Service->flowDoneWithAppPassword($loginToken, $this->getServerPath(), $token->getLoginName(), $password);
return $this->handleFlowDone($result);
}