Standards

pull/10380/head
Michael 2021-06-08 07:35:36 +00:00
parent ca5e0eaaea
commit 4b280a7279
1 changed files with 1 additions and 3 deletions

View File

@ -120,9 +120,7 @@ class OAuth
return [];
}
$bearer = trim(substr($authorization, 7));
$condition = ['access_token' => $bearer];
$condition = ['access_token' => trim(substr($authorization, 7))];
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
if (!DBA::isResult($token)) {