changed the argument to false for getValue , reformated else statement
This commit is contained in:
parent
08a0435704
commit
9b0454380c
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue