Standards
This commit is contained in:
parent
ca5e0eaaea
commit
4b280a7279
1 changed files with 1 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue