diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index b2fc283a..e1b14d91 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -191,7 +191,7 @@ class ProviderEditPage extends React.Component { return Setting.getLabel(i18next.t("provider:App key"), i18next.t("provider:App key - Tooltip")); } else if (provider.type === "UCloud SMS") { return Setting.getLabel(i18next.t("provider:Public key"), i18next.t("provider:Public key - Tooltip")); - } else if (provider.type === "Msg91 SMS" || provider.type === "Infobip SMS") { + } else if (provider.type === "Msg91 SMS" || provider.type === "Infobip SMS" || provider.type === "OSON SMS") { return Setting.getLabel(i18next.t("provider:Sender Id"), i18next.t("provider:Sender Id - Tooltip")); } else { return Setting.getLabel(i18next.t("provider:Client ID"), i18next.t("provider:Client ID - Tooltip")); @@ -234,7 +234,7 @@ class ProviderEditPage extends React.Component { return Setting.getLabel(i18next.t("general:Password"), i18next.t("general:Password - Tooltip")); } case "SMS": - if (provider.type === "Volc Engine SMS" || provider.type === "Amazon SNS" || provider.type === "Baidu Cloud SMS") { + if (provider.type === "Volc Engine SMS" || provider.type === "Amazon SNS" || provider.type === "Baidu Cloud SMS" || provider.type === "OSON SMS") { return Setting.getLabel(i18next.t("provider:Secret access key"), i18next.t("provider:Secret access key - Tooltip")); } else if (provider.type === "Huawei Cloud SMS") { return Setting.getLabel(i18next.t("provider:App secret"), i18next.t("provider:AppSecret - Tooltip")); diff --git a/web/src/Setting.js b/web/src/Setting.js index 227d6b95..18dbd778 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -143,6 +143,10 @@ export const OtherProviderInfo = { logo: `${StaticBaseUrl}/img/social_msg91.ico`, url: "https://control.msg91.com/app/", }, + "OSON SMS": { + logo: "https://osonsms.com/images/osonsms-logo.svg", + url: "https://osonsms.com/", + }, "Custom HTTP SMS": { logo: `${StaticBaseUrl}/img/social_default.png`, url: "https://casdoor.org/docs/provider/sms/overview", @@ -1005,6 +1009,7 @@ export function getProviderTypeOptions(category) { {id: "Azure ACS", name: "Azure ACS"}, {id: "Custom HTTP SMS", name: "Custom HTTP SMS"}, {id: "Mock SMS", name: "Mock SMS"}, + {id: "OSON SMS", name: "OSON SMS"}, {id: "Infobip SMS", name: "Infobip SMS"}, {id: "Tencent Cloud SMS", name: "Tencent Cloud SMS"}, {id: "Baidu Cloud SMS", name: "Baidu Cloud SMS"},