Merge pull request #16 from ildyria/fix-id-0-user
[1.x] Allow user credential to have id = 0
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,7 +1,8 @@
|
||||
/build
|
||||
/vendor
|
||||
/.idea
|
||||
/.vscode
|
||||
.php-cs-fixer.cache
|
||||
.phpunit.result.cache
|
||||
composer.lock
|
||||
phpunit.xml.bak
|
||||
phpunit.xml.bak
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user