]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Don't continue when key couldn't be created
[friendica.git] / include / api.php
index c6f67109a3fe4e00d43be87bd573caa9ab18a342..e0cac831e5644b7fe492e5b55fde4de4402cd43a 100644 (file)
@@ -258,7 +258,7 @@ function api_login(App $a)
 
        $_SESSION["allow_api"] = true;
 
-       Hook::callAll('logged_in', $a->user);
+       Hook::callAll('logged_in', $record);
 }
 
 /**
@@ -322,7 +322,7 @@ function api_call(App $a, App\Arguments $args = null)
 
                                if (!empty($info['auth']) && api_user() === false) {
                                        api_login($a);
-                                       Logger::info(API_LOG_PREFIX . 'username {username}', ['module' => 'api', 'action' => 'call', 'username' => $a->user['username']]);
+                                       Logger::info(API_LOG_PREFIX . 'nickname {nickname}', ['module' => 'api', 'action' => 'call', 'nickname' => $a->getLoggedInUserNickname()]);
                                }
 
                                Logger::debug(API_LOG_PREFIX . 'parameters', ['module' => 'api', 'action' => 'call', 'parameters' => $_REQUEST]);