From f3545208ab29ac646e3f104892aabcabe575411d Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 13 Jan 2015 15:00:06 +0100 Subject: Add log in API See https://github.com/FreshRSS/FreshRSS/issues/747 --- p/api/greader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'p/api') 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(); } -- cgit v1.2.3