allow user credential to be a id = 0

This commit is contained in:
ildyria
2022-08-25 00:25:17 +02:00
parent 5928fb1473
commit 55b73283c6
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
/build
/vendor
/.idea
/.vscode
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock

View File

@@ -121,7 +121,7 @@ class AssertionRequest extends FormRequest
*/
protected function findUser(WebAuthnAuthenticatable|array|int|string|null $credentials): ?WebAuthnAuthenticatable
{
if (!$credentials) {
if ($credentials === null) {
return null;
}