]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OAuth/Revoke.php
Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality
[friendica.git] / src / Module / OAuth / Revoke.php
index 979114434827dbe8c34765be3c51cc143f5a510c..a20482b22160bf4eb60ef0c70bd94688e32e1b3a 100644 (file)
@@ -51,7 +51,7 @@ class Revoke extends BaseApi
                $token = DBA::selectFirst('application-view', ['id'], $condition);
                if (empty($token['id'])) {
                        $this->logger->notice('Token not found', $condition);
-                       $this->logErrorAndJsonExit(401, $this->errorFactory->Unauthorized());
+                       $this->logAndJsonError(401, $this->errorFactory->Unauthorized());
                }
 
                DBA::delete('application-token', ['application-id' => $token['id']]);