fix: coderabbit review

This commit is contained in:
Seefs
2025-08-03 10:41:00 +08:00
parent b48d3a6b40
commit b56a75cbe3
6 changed files with 25 additions and 10 deletions
+1 -4
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 获取环境变量或默认值