bypass password for admin
This commit is contained in:
@@ -192,4 +192,9 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
{
|
||||
return $this->emailUpdate()->exists();
|
||||
}
|
||||
|
||||
public function isAdmin(): bool
|
||||
{
|
||||
return $this->admin === 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user