summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-12-02 17:55:21 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-12-13 09:12:40 +0000
commita3cd174b44bbcb8f0443db02c96cfd4897660b4b (patch)
tree6255cc6f62791f24f1a5ef795e8187afcd015598
parent7b1f031ae0c69173d5483eac5c7b3083f156c399 (diff)
downloadnextcloud-server-a3cd174b44bbcb8f0443db02c96cfd4897660b4b.tar.gz
nextcloud-server-a3cd174b44bbcb8f0443db02c96cfd4897660b4b.zip
Fix GH-33187
$this->userId is null when loggedin via app password. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-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);
}