bypass password for admin

This commit is contained in:
2024-04-28 18:36:03 +10:00
parent c719da2933
commit bd8f453aea
3 changed files with 9 additions and 2 deletions

View File

@@ -192,4 +192,9 @@ class User extends Authenticatable implements MustVerifyEmail
{
return $this->emailUpdate()->exists();
}
public function isAdmin(): bool
{
return $this->admin === 1;
}
}