]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added failed auth logging (like in actions/api.php)
authorJeffery To <jeffery.to@gmail.com>
Fri, 17 Jul 2009 08:44:14 +0000 (16:44 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 17 Jul 2009 08:44:14 +0000 (16:44 +0800)
lib/rssaction.php

index dceabcbec8c8b9ec59c316dde4645eb8c2788f75..15c238bf90aef1ca2686f7af229122cc300169d3 100644 (file)
@@ -112,6 +112,9 @@ class Rss10Action extends Action
 
                 if (!common_check_user($nickname, $password)) {
                     # basic authentication failed
+                    list($proxy, $ip) = common_client_ip();
+
+                    common_log(LOG_WARNING, "Failed RSS auth attempt, nickname = $nickname, proxy = $proxy, ip = $ip.");
                     $this->show_basic_auth_error();
                     return;
                 }