feat: balance change

This commit is contained in:
hashbro
2026-08-29 23:16:57 +08:00
parent e9192d5720
commit 3e87a44de3
19 changed files with 808 additions and 36 deletions
+15
View File
@@ -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();
}
}