Fix goaway url when login failed + using info to display message

This commit is contained in:
Jonny Tischbein 2018-10-03 13:10:49 +02:00
parent ec898ecd2a
commit 3ecabe0291

View file

@ -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) {