feat: balance change
This commit is contained in:
@@ -37,4 +37,19 @@ class Admin extends Authenticatable
|
||||
{
|
||||
return (int) $this->status === 1;
|
||||
}
|
||||
|
||||
public function hasGoogleBound(): bool
|
||||
{
|
||||
return filled($this->google_secret);
|
||||
}
|
||||
|
||||
public function requiresLoginGoogle(): bool
|
||||
{
|
||||
return $this->hasGoogleBound() && (int) $this->google_auth_open === 1;
|
||||
}
|
||||
|
||||
public function canRevealMnemonics(): bool
|
||||
{
|
||||
return $this->isSuper();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user