|
@@ -38,7 +38,6 @@ func InitOptionMap() {
|
|
|
common.OptionMap["PasswordRegisterEnabled"] = strconv.FormatBool(common.PasswordRegisterEnabled)
|
|
common.OptionMap["PasswordRegisterEnabled"] = strconv.FormatBool(common.PasswordRegisterEnabled)
|
|
|
common.OptionMap["EmailVerificationEnabled"] = strconv.FormatBool(common.EmailVerificationEnabled)
|
|
common.OptionMap["EmailVerificationEnabled"] = strconv.FormatBool(common.EmailVerificationEnabled)
|
|
|
common.OptionMap["GitHubOAuthEnabled"] = strconv.FormatBool(common.GitHubOAuthEnabled)
|
|
common.OptionMap["GitHubOAuthEnabled"] = strconv.FormatBool(common.GitHubOAuthEnabled)
|
|
|
- common.OptionMap["DiscordOAuthEnabled"] = strconv.FormatBool(common.DiscordOAuthEnabled)
|
|
|
|
|
common.OptionMap["LinuxDOOAuthEnabled"] = strconv.FormatBool(common.LinuxDOOAuthEnabled)
|
|
common.OptionMap["LinuxDOOAuthEnabled"] = strconv.FormatBool(common.LinuxDOOAuthEnabled)
|
|
|
common.OptionMap["TelegramOAuthEnabled"] = strconv.FormatBool(common.TelegramOAuthEnabled)
|
|
common.OptionMap["TelegramOAuthEnabled"] = strconv.FormatBool(common.TelegramOAuthEnabled)
|
|
|
common.OptionMap["WeChatAuthEnabled"] = strconv.FormatBool(common.WeChatAuthEnabled)
|
|
common.OptionMap["WeChatAuthEnabled"] = strconv.FormatBool(common.WeChatAuthEnabled)
|
|
@@ -96,8 +95,6 @@ func InitOptionMap() {
|
|
|
common.OptionMap["PayMethods"] = operation_setting.PayMethods2JsonString()
|
|
common.OptionMap["PayMethods"] = operation_setting.PayMethods2JsonString()
|
|
|
common.OptionMap["GitHubClientId"] = ""
|
|
common.OptionMap["GitHubClientId"] = ""
|
|
|
common.OptionMap["GitHubClientSecret"] = ""
|
|
common.OptionMap["GitHubClientSecret"] = ""
|
|
|
- common.OptionMap["DiscordClientId"] = ""
|
|
|
|
|
- common.OptionMap["DiscordClientSecret"] = ""
|
|
|
|
|
common.OptionMap["TelegramBotToken"] = ""
|
|
common.OptionMap["TelegramBotToken"] = ""
|
|
|
common.OptionMap["TelegramBotName"] = ""
|
|
common.OptionMap["TelegramBotName"] = ""
|
|
|
common.OptionMap["WeChatServerAddress"] = ""
|
|
common.OptionMap["WeChatServerAddress"] = ""
|
|
@@ -227,8 +224,6 @@ func updateOptionMap(key string, value string) (err error) {
|
|
|
common.EmailVerificationEnabled = boolValue
|
|
common.EmailVerificationEnabled = boolValue
|
|
|
case "GitHubOAuthEnabled":
|
|
case "GitHubOAuthEnabled":
|
|
|
common.GitHubOAuthEnabled = boolValue
|
|
common.GitHubOAuthEnabled = boolValue
|
|
|
- case "DiscordOAuthEnabled":
|
|
|
|
|
- common.DiscordOAuthEnabled = boolValue
|
|
|
|
|
case "LinuxDOOAuthEnabled":
|
|
case "LinuxDOOAuthEnabled":
|
|
|
common.LinuxDOOAuthEnabled = boolValue
|
|
common.LinuxDOOAuthEnabled = boolValue
|
|
|
case "WeChatAuthEnabled":
|
|
case "WeChatAuthEnabled":
|
|
@@ -365,10 +360,6 @@ func updateOptionMap(key string, value string) (err error) {
|
|
|
common.GitHubClientId = value
|
|
common.GitHubClientId = value
|
|
|
case "GitHubClientSecret":
|
|
case "GitHubClientSecret":
|
|
|
common.GitHubClientSecret = value
|
|
common.GitHubClientSecret = value
|
|
|
- case "DiscordClientId":
|
|
|
|
|
- common.DiscordClientId = value
|
|
|
|
|
- case "DiscordClientSecret":
|
|
|
|
|
- common.DiscordClientSecret = value
|
|
|
|
|
case "LinuxDOClientId":
|
|
case "LinuxDOClientId":
|
|
|
common.LinuxDOClientId = value
|
|
common.LinuxDOClientId = value
|
|
|
case "LinuxDOClientSecret":
|
|
case "LinuxDOClientSecret":
|