mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-01-17 04:15:57 +08:00
Merge 3462bd538c into c4fe57c165
This commit is contained in:
@@ -45,6 +45,7 @@ func InitOptionMap() {
|
||||
config.OptionMap["SMTPPort"] = strconv.Itoa(config.SMTPPort)
|
||||
config.OptionMap["SMTPAccount"] = ""
|
||||
config.OptionMap["SMTPToken"] = ""
|
||||
config.OptionMap["SMTPAuthLoginEnabled"] = strconv.FormatBool(config.SMTPAuthLoginEnabled)
|
||||
config.OptionMap["Notice"] = ""
|
||||
config.OptionMap["About"] = ""
|
||||
config.OptionMap["HomePageContent"] = ""
|
||||
@@ -150,6 +151,8 @@ func updateOptionMap(key string, value string) (err error) {
|
||||
config.DisplayInCurrencyEnabled = boolValue
|
||||
case "DisplayTokenStatEnabled":
|
||||
config.DisplayTokenStatEnabled = boolValue
|
||||
case "SMTPAuthLoginEnabled":
|
||||
config.SMTPAuthLoginEnabled = boolValue
|
||||
}
|
||||
}
|
||||
switch key {
|
||||
|
||||
Reference in New Issue
Block a user