Skip to content

A free, self-hostable news aggregator…

Fever API: log the client IP address on authentication failure (#8981)

Jam Balaya988c678634ee
diff --git a/p/api/fever.php b/p/api/fever.php
index 102ac6a07..5d4791851 100644
--- a/p/api/fever.php
+++ b/p/api/fever.php
@@ -188,7 +188,8 @@ final class FeverAPI
Minz_Log::error('Fever API: Please reset your API password!');
Minz_User::change();
}
- Minz_Log::warning('Fever API: wrong credentials! ' . $feverKey, API_LOG);
+ Minz_Log::warning('Fever API: wrong credentials! ' . $feverKey .
+ ' ; Remote IP address=' . Minz_Request::connectionRemoteAddress(), API_LOG);
}
return false;
}