Skip to content
Snippets Groups Projects
Commit 9b045438 authored by Axel Roenn's avatar Axel Roenn
Browse files

changed the argument to false for getValue , reformated else statement

parent 08a04357
No related branches found
No related tags found
No related merge requests found
......@@ -730,11 +730,10 @@ class OC {
// Someone wants to log in :
} elseif (OC::tryFormLogin()) {
$error[] = 'invalidpassword';
if ( OC_Config::getValue('log_authfailip', '') ) {
if ( OC_Config::getValue('log_authfailip', false) ) {
OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:'.$_SERVER['REMOTE_ADDR'],
OC_Log::WARN);
}
else {
} else {
OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:set log_authfailip=true in conf',
OC_Log::WARN);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment