Check the start of the string
This commit is contained in:
parent
74f3c885bf
commit
7d8c152aaf
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class BaseApi extends BaseModule
|
|||
|
||||
private static function checkBearer(string $authorization)
|
||||
{
|
||||
return(strpos($authorization, 'Bearer ') !== false);
|
||||
return (substr($authorization, 0, 7) == 'Bearer ');
|
||||
}
|
||||
|
||||
private static function getUserByBearer(string $authorization)
|
||||
|
|
Loading…
Reference in a new issue