This commit is contained in:
ildyria
2022-07-05 10:45:04 +02:00
parent e5880c97a3
commit ef67c9e130

View File

@@ -46,7 +46,7 @@ class WebAuthnUserProvider extends EloquentUserProvider
*/
public function retrieveByCredentials(array $credentials)
{
if (class_implements($this->model, WebAuthnAuthenticatable::class) && $this->isSignedChallenge($credentials)) {
if (in_array(WebAuthnAuthenticatable::class, class_implements($this->model, true), true) && $this->isSignedChallenge($credentials)) {
/** @noinspection PhpIncompatibleReturnTypeInspection */
return $this->newModelQuery()
->whereHas('webAuthnCredentials', static function (Builder $query) use ($credentials): void {