Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-08-15 14:13:00 +0400
committerLukas Reschke <lukas@owncloud.com>2014-08-15 18:52:13 +0400
commite7cea79ee7311c41c5f95082cba6e75e0236beac (patch)
treef46b249986f5a6b843f2edf0f9da3c6543889011 /lib/base.php
parent1a2bae347ad734a82d042eb34aeff3558962026e (diff)
Move authentication failed logging to checkPassword
Fixes https://github.com/owncloud/core/issues/10366
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php
index 85049bb69c6..ed0830c1f72 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -842,13 +842,6 @@ class OC {
} // logon via web form
elseif (OC::tryFormLogin()) {
$error[] = 'invalidpassword';
- 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 {
- OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:set log_authfailip=true in conf',
- OC_Log::WARN);
- }
}
OC_Util::displayLoginPage(array_unique($error));