diff --git a/src/EventSubscriber/AutoLogin.php b/src/EventSubscriber/AutoLogin.php index cf03ca6..f7cbe1f 100644 --- a/src/EventSubscriber/AutoLogin.php +++ b/src/EventSubscriber/AutoLogin.php @@ -102,7 +102,7 @@ class AutoLogin implements EventSubscriberInterface { // Get current request. $request = $event->getRequest(); // Check if user is anonymous and login or register page was requested. - if ($this->isAutostartEnabled() && $this->currentUser->isAnonymous() && $this->isLoginRequested($request)) { + if (($this->isAutostartEnabled() || $request->query->has('autologin')) && $this->currentUser->isAnonymous() && $this->isLoginRequested($request)) { // If there is no login errors and login process is not in progress // and openid_connect_bypass is not provided, then start login process. if (!$this->hasErrors() && !$this->bypassAutoLogin($request)) {