Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-16 12:03:12 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2021-04-20 10:11:33 +0300
commit69290781ff0a59e72c1cf7c9c3b1c6a5ffc2596a (patch)
treea4e4355b32b5a25eea87ed3dd0c25d10e85fae8f /core/Controller
parentadab9deb3e33307afa73dc6a3459eae24ec5955e (diff)
Handle device login like an alternative login
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index e466f029ec1..b14b2e072b9 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -204,6 +204,9 @@ class LoginController extends Controller {
$parameters = [
'alt_login' => OC_App::getAlternativeLogIns(),
];
+
+ $this->initialStateService->provideInitialState('core', 'countAlternativeLogins', count($parameters['alt_login']));
+
return new TemplateResponse(
$this->appName, 'login', $parameters, 'guest'
);