Standards
This commit is contained in:
parent
ca5e0eaaea
commit
4b280a7279
|
@ -120,9 +120,7 @@ class OAuth
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$bearer = trim(substr($authorization, 7));
|
$condition = ['access_token' => trim(substr($authorization, 7))];
|
||||||
|
|
||||||
$condition = ['access_token' => $bearer];
|
|
||||||
|
|
||||||
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
|
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
|
||||||
if (!DBA::isResult($token)) {
|
if (!DBA::isResult($token)) {
|
||||||
|
|
Loading…
Reference in a new issue