Merge pull request #16 from ildyria/fix-id-0-user

[1.x] Allow user credential to have id = 0
This commit is contained in:
Italo
2022-08-24 23:30:48 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

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

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;
}