diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-16 12:03:12 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-20 10:11:33 +0300 |
commit | 69290781ff0a59e72c1cf7c9c3b1c6a5ffc2596a (patch) | |
tree | a4e4355b32b5a25eea87ed3dd0c25d10e85fae8f /core/Controller | |
parent | adab9deb3e33307afa73dc6a3459eae24ec5955e (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.php | 3 |
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' ); |