Skip to content

A free, self-hostable news aggregator…

Add log in API

Marien Fressinaudf3545208ab29
diff --git a/p/api/greader.php b/p/api/greader.php
index bbde2a867..069fcd5a8 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -152,7 +152,7 @@ function authorizationToUserConf() {
if (ctype_alnum($user)) {
$conf = get_user_configuration($user);
if (is_null($conf)) {
- logMe('Invalid configuration API file for user ' . $user);
+ Minz_Log::warning('Invalid API user ' . $user . ': configuration cannot be found.');
unauthorized();
}
$system_conf = Minz_Configuration::get('system');
@@ -180,6 +180,7 @@ function clientLogin($email, $pass) { //http://web.archive.org/web/2013060409104
$conf = get_user_configuration($email);
if (is_null($conf)) {
+ Minz_Log::warning('Invalid API user ' . $email . ': configuration cannot be found.');
unauthorized();
}