Fix goaway url when login failed + using info to display message
This commit is contained in:
parent
ec898ecd2a
commit
3ecabe0291
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ class Login extends BaseModule
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
logger('authenticate: failed login attempt: ' . notags($username) . ' from IP ' . $_SERVER['REMOTE_ADDR']);
|
logger('authenticate: failed login attempt: ' . notags($username) . ' from IP ' . $_SERVER['REMOTE_ADDR']);
|
||||||
notice($e->getMessage() . EOL);
|
info('Login failed: ' . $e->getMessage() . EOL);
|
||||||
goaway(self::getApp()->get_baseurl() . '/login');
|
goaway();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$remember) {
|
if (!$remember) {
|
||||||
|
|
Loading…
Reference in a new issue