improve admin user profile + image hosting

This commit is contained in:
xiaomlove
2024-12-29 22:16:41 +08:00
parent f146a654c2
commit 5a9f1f1017
40 changed files with 22110 additions and 456 deletions

View File

@@ -333,6 +333,11 @@ class User extends Authenticatable implements FilamentUser, HasName
);
}
protected function getTwoFactorAuthenticationStatusAttribute(): string
{
return $this->two_step_secret != "" ? "yes" : "no";
}
public static function getMinSeedPoints($class)
{
$setting = Setting::get("account.{$class}_min_seed_points");