mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-02-17 03:14:25 +08:00
feat: support LOGIN as SMTP authentication method.
This commit is contained in:
@@ -47,6 +47,7 @@ func InitOptionMap() {
|
||||
common.OptionMap["SMTPPort"] = strconv.Itoa(common.SMTPPort)
|
||||
common.OptionMap["SMTPAccount"] = ""
|
||||
common.OptionMap["SMTPToken"] = ""
|
||||
common.OptionMap["SMTPAuthLoginEnabled"] = strconv.FormatBool(common.SMTPAuthLoginEnabled)
|
||||
common.OptionMap["Notice"] = ""
|
||||
common.OptionMap["About"] = ""
|
||||
common.OptionMap["HomePageContent"] = ""
|
||||
@@ -159,6 +160,8 @@ func updateOptionMap(key string, value string) (err error) {
|
||||
common.DisplayInCurrencyEnabled = boolValue
|
||||
case "DisplayTokenStatEnabled":
|
||||
common.DisplayTokenStatEnabled = boolValue
|
||||
case "SMTPAuthLoginEnabled":
|
||||
common.SMTPAuthLoginEnabled = boolValue
|
||||
}
|
||||
}
|
||||
switch key {
|
||||
|
||||
Reference in New Issue
Block a user