Check the start of the string

This commit is contained in:
Michael 2021-05-11 13:17:48 +00:00
parent 74f3c885bf
commit 7d8c152aaf

View File

@ -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)