mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 02:32:26 +05:30
Fixes ACCOUNTS-6A. Force value to string for client token validation
This commit is contained in:
parent
99c983c3ea
commit
a1eb5f3be6
@ -18,7 +18,7 @@ class ClientTokenValidator extends Validator {
|
||||
* @throws \api\modules\authserver\exceptions\AuthserverException
|
||||
*/
|
||||
protected function validateValue($value): ?array {
|
||||
if (mb_strlen($value) > 255) {
|
||||
if (mb_strlen((string)$value) > 255) {
|
||||
throw new IllegalArgumentException('clientToken is too long.');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user