diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index cc84bd1..c107b70 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -5,7 +5,7 @@ framework: session: name: twyne - handler_id: null + handler_id: session.handler.native_file storage_factory_id: session.storage.factory.native save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%" cookie_secure: auto diff --git a/src/Security/LoginFormAuthenticator.php b/src/Security/LoginFormAuthenticator.php index 6b78c6e..5e2ae71 100644 --- a/src/Security/LoginFormAuthenticator.php +++ b/src/Security/LoginFormAuthenticator.php @@ -72,7 +72,7 @@ private function getUser($credentials): User /** * @inheritDoc */ - public function authenticate(Request $request) /* : Passport; */ + public function authenticate(Request $request): Passport { $credentials = [ 'username' => $request->request->get('username'),