]> git.mxchange.org Git - friendica.git/commitdiff
Fix goaway url when login failed + using info to display message
authorJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 3 Oct 2018 11:10:49 +0000 (13:10 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 3 Oct 2018 11:10:49 +0000 (13:10 +0200)
src/Module/Login.php

index fadfb206612c3bd728f00efa276b453372ba280a..e6bb933f0f83e2fb907888f7f43bd3dac661c891 100644 (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) {