From eefae43a47a3f85c4a963c7b7c506425715cab96 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 21 Jul 2019 18:53:51 +0200 Subject: simplified login form, show password recovery always, some camp theme tweaks --- src/Controllers/AuthController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Controllers') diff --git a/src/Controllers/AuthController.php b/src/Controllers/AuthController.php index 55dd56b0..c69c2377 100644 --- a/src/Controllers/AuthController.php +++ b/src/Controllers/AuthController.php @@ -59,17 +59,16 @@ class AuthController extends BaseController } /** - * @param bool $showRecovery * @return Response */ - protected function showLogin($showRecovery = false): Response + protected function showLogin(): Response { $errors = Collection::make(Arr::flatten($this->session->get('errors', []))); $this->session->remove('errors'); return $this->response->withView( 'pages/login', - ['errors' => $errors, 'show_password_recovery' => $showRecovery] + ['errors' => $errors] ); } @@ -91,7 +90,7 @@ class AuthController extends BaseController if (!$user instanceof User) { $this->session->set('errors', $this->session->get('errors', []) + ['auth.not-found']); - return $this->showLogin(true); + return $this->showLogin(); } $this->session->invalidate(); -- cgit v1.2.3-54-g00ecf