修复邮件发送密码为密文密码的Bug

随机生成的密码打印到日志
邮件通知发送明文密码
清理代码
This commit is contained in:
wsczx
2025-03-07 15:38:20 +08:00
parent 5e60feeb9b
commit 315e1deadc
9 changed files with 30 additions and 156 deletions

View File

@@ -2,11 +2,12 @@ package base
import (
"fmt"
"github.com/bjdgyc/anylink/pkg/utils"
"os"
"path/filepath"
"reflect"
"strings"
"github.com/bjdgyc/anylink/pkg/utils"
)
const (
@@ -85,9 +86,10 @@ type ServerConfig struct {
Compression bool `json:"compression"` // bool
NoCompressLimit int `json:"no_compress_limit"` // int
DisplayError bool `json:"display_error"`
ExcludeExportIp bool `json:"exclude_export_ip"`
AuthAloneOtp bool `json:"auth_alone_otp"`
DisplayError bool `json:"display_error"`
ExcludeExportIp bool `json:"exclude_export_ip"`
AuthAloneOtp bool `json:"auth_alone_otp"`
EncryptionPassword bool `json:"encryption_password"`
AntiBruteForce bool `json:"anti_brute_force"`
IPWhitelist string `json:"ip_whitelist"`