diff options
author | Axel Roenn <axel@mpim-bonn.mpg.de> | 2013-10-10 14:15:13 +0200 |
---|---|---|
committer | Axel Roenn <axel@mpim-bonn.mpg.de> | 2013-10-10 14:15:13 +0200 |
commit | 9b0454380ccef34368a0a5227857788877722085 (patch) | |
tree | ded632524d90fda159ef48067560482ba6714146 | |
parent | 08a04357042e5f0b8946f2bdc13990b00db1cad7 (diff) | |
download | nextcloud-server-9b0454380ccef34368a0a5227857788877722085.tar.gz nextcloud-server-9b0454380ccef34368a0a5227857788877722085.zip |
changed the argument to false for getValue , reformated else statement
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php index e8a4d3f87ad..cceb82ef47a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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); } |