summaryrefslogtreecommitdiff
path: root/src/Controllers
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-07-21 18:53:51 +0200
committermsquare <msquare@notrademark.de>2019-07-21 18:53:51 +0200
commiteefae43a47a3f85c4a963c7b7c506425715cab96 (patch)
treeb8134e72bca59f4b52bec07547b5b119d08267b7 /src/Controllers
parent3fed76876c7f72faa0dd0dbf38c6b03543aa2d84 (diff)
simplified login form, show password recovery always, some camp theme tweaks
Diffstat (limited to 'src/Controllers')
-rw-r--r--src/Controllers/AuthController.php7
1 files changed, 3 insertions, 4 deletions
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();