X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogin.php;h=b0897f2d76b841166fc5b328f4d17254b6276916;hb=f6af90fa328bcf7e731917f011b3e20fefeace1c;hp=516a05df565758085b606fb0a17ed006396b6358;hpb=aa15c0e0942058ca20445a16f999bddcb474d59b;p=friendica.git diff --git a/src/Module/Login.php b/src/Module/Login.php index 516a05df56..b0897f2d76 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -43,7 +43,7 @@ class Login extends BaseModule $a->internalRedirect(); } - return self::form(defaults($_SESSION, 'return_path', null), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED); + return self::form(defaults($_SESSION, 'return_path', null), intval(Config::get('config', 'register_policy')) !== \Friendica\Module\Register::CLOSED); } public static function post() @@ -148,7 +148,7 @@ class Login extends BaseModule ); } } catch (Exception $e) { - Logger::notice('authenticate: failed login attempt', ['username' => Strings::escapeTags($username), 'ip' => $_SERVER['REMOTE_ADDR']]); + Logger::warning('authenticate: failed login attempt', ['action' => 'login', 'username' => Strings::escapeTags($username), 'ip' => $_SERVER['REMOTE_ADDR']]); info('Login failed. Please check your credentials.' . EOL); $a->internalRedirect(); }