summaryrefslogtreecommitdiffstats
path: root/core/Controller/ClientFlowLoginV2Controller.php
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-12-02 17:55:21 +0100
committerMarcel Klehr (Rebase PR Action) <mklehr@gmx.net>2022-12-12 19:12:18 +0000
commitb5f6ecfb005dc04353df241e8686585ada9b02b6 (patch)
tree429fe613b01b01736160e8ec021221acbf6a9485 /core/Controller/ClientFlowLoginV2Controller.php
parentda8e335e7424191340683cdf58410d5fd28ea814 (diff)
downloadnextcloud-server-b5f6ecfb005dc04353df241e8686585ada9b02b6.tar.gz
nextcloud-server-b5f6ecfb005dc04353df241e8686585ada9b02b6.zip
Fix GH-33187
$this->userId is null when loggedin via app password. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/Controller/ClientFlowLoginV2Controller.php')
-rw-r--r--core/Controller/ClientFlowLoginV2Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ClientFlowLoginV2Controller.php b/core/Controller/ClientFlowLoginV2Controller.php
index 3c57b190593..4df94a28d6a 100644
--- a/core/Controller/ClientFlowLoginV2Controller.php
+++ b/core/Controller/ClientFlowLoginV2Controller.php
@@ -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);
}