fix: coderabbit review

This commit is contained in:
Seefs
2025-08-03 10:41:00 +08:00
parent c784a70277
commit d85eeabf11
6 changed files with 25 additions and 10 deletions

View File

@@ -113,10 +113,7 @@ func HashBackupCode(code string) (string, error) {
// Get2FAIssuer 获取2FA发行者名称
func Get2FAIssuer() string {
if issuer := SystemName; issuer != "" {
return issuer
}
return "NewAPI"
return SystemName
}
// getEnvOrDefault 获取环境变量或默认值