From 3ecabe0291b159d163ad315b66f51b6d741d879e Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Wed, 3 Oct 2018 13:10:49 +0200 Subject: [PATCH] Fix goaway url when login failed + using info to display message --- src/Module/Login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Login.php b/src/Module/Login.php index fadfb2066..e6bb933f0 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -140,8 +140,8 @@ class Login extends BaseModule } } catch (Exception $e) { logger('authenticate: failed login attempt: ' . notags($username) . ' from IP ' . $_SERVER['REMOTE_ADDR']); - notice($e->getMessage() . EOL); - goaway(self::getApp()->get_baseurl() . '/login'); + info('Login failed: ' . $e->getMessage() . EOL); + goaway(); } if (!$remember) {