mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-02-12 17:14:27 +08:00
Merge a4b35ba0a6 into 29389ed44f
This commit is contained in:
@@ -46,6 +46,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"] = ""
|
||||
@@ -153,6 +154,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