Added failed auth logging (like in actions/api.php)

This commit is contained in:
Jeffery To 2009-07-17 16:44:14 +08:00
parent ae6a3e258d
commit 5015505f16

View 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;
}