]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix GH-33187 35562/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 2 Dec 2022 16:55:21 +0000 (17:55 +0100)
committerMarcel Klehr (Rebase PR Action) <mklehr@gmx.net>
Mon, 12 Dec 2022 19:12:18 +0000 (19:12 +0000)
$this->userId is null when loggedin via app password.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
core/Controller/ClientFlowLoginV2Controller.php

index 3c57b190593dd9c09150094eba88d2a8b63eff78..4df94a28d6a1ed62eb03b1e6d18a1d99b69aec0b 100644 (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);
        }