diff options
author | Axel Roenn <axel@mpim-bonn.mpg.de> | 2013-09-09 15:35:39 +0200 |
---|---|---|
committer | Axel Roenn <axel@mpim-bonn.mpg.de> | 2013-09-09 15:35:39 +0200 |
commit | 0cd6473909e3db54cb69df4de96ef8409b41e515 (patch) | |
tree | 079d17c599e2e68455077dc7464bddc370c70849 /lib | |
parent | 92f6c3bb10b698c9c1ffb13b7c142a936fb94705 (diff) | |
download | nextcloud-server-0cd6473909e3db54cb69df4de96ef8409b41e515.tar.gz nextcloud-server-0cd6473909e3db54cb69df4de96ef8409b41e515.zip |
On an auth failure the uid and the IP address should be logged to the standard log file.
This update works for a standard setup, when using a proxy for the server one can probably use the X-forwarded-for header
instead of the remote address.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index ea5adbadc9d..052444271c3 100644 --- a/lib/base.php +++ b/lib/base.php @@ -730,6 +730,8 @@ class OC { // Someone wants to log in : } elseif (OC::tryFormLogin()) { $error[] = 'invalidpassword'; + OC_Log::write('core', 'Login failed: user \''.$_POST["user"].'\' , wrong password, IP:'.$_SERVER['REMOTE_ADDR'], + OC_Log::ERROR); } OC_Util::displayLoginPage(array_unique($error)); |