mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: add OSON SMS provider (#2769)
* implemented SMS provider 'OSON SMS' for frontend * feat: add 'OSON SMS' provider for frontend
This commit is contained in:
parent
8b64d113fb
commit
f241336ad7
@ -191,7 +191,7 @@ class ProviderEditPage extends React.Component {
|
|||||||
return Setting.getLabel(i18next.t("provider:App key"), i18next.t("provider:App key - Tooltip"));
|
return Setting.getLabel(i18next.t("provider:App key"), i18next.t("provider:App key - Tooltip"));
|
||||||
} else if (provider.type === "UCloud SMS") {
|
} else if (provider.type === "UCloud SMS") {
|
||||||
return Setting.getLabel(i18next.t("provider:Public key"), i18next.t("provider:Public key - Tooltip"));
|
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"));
|
return Setting.getLabel(i18next.t("provider:Sender Id"), i18next.t("provider:Sender Id - Tooltip"));
|
||||||
} else {
|
} else {
|
||||||
return Setting.getLabel(i18next.t("provider:Client ID"), i18next.t("provider:Client ID - Tooltip"));
|
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"));
|
return Setting.getLabel(i18next.t("general:Password"), i18next.t("general:Password - Tooltip"));
|
||||||
}
|
}
|
||||||
case "SMS":
|
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"));
|
return Setting.getLabel(i18next.t("provider:Secret access key"), i18next.t("provider:Secret access key - Tooltip"));
|
||||||
} else if (provider.type === "Huawei Cloud SMS") {
|
} else if (provider.type === "Huawei Cloud SMS") {
|
||||||
return Setting.getLabel(i18next.t("provider:App secret"), i18next.t("provider:AppSecret - Tooltip"));
|
return Setting.getLabel(i18next.t("provider:App secret"), i18next.t("provider:AppSecret - Tooltip"));
|
||||||
|
@ -143,6 +143,10 @@ export const OtherProviderInfo = {
|
|||||||
logo: `${StaticBaseUrl}/img/social_msg91.ico`,
|
logo: `${StaticBaseUrl}/img/social_msg91.ico`,
|
||||||
url: "https://control.msg91.com/app/",
|
url: "https://control.msg91.com/app/",
|
||||||
},
|
},
|
||||||
|
"OSON SMS": {
|
||||||
|
logo: "https://osonsms.com/images/osonsms-logo.svg",
|
||||||
|
url: "https://osonsms.com/",
|
||||||
|
},
|
||||||
"Custom HTTP SMS": {
|
"Custom HTTP SMS": {
|
||||||
logo: `${StaticBaseUrl}/img/social_default.png`,
|
logo: `${StaticBaseUrl}/img/social_default.png`,
|
||||||
url: "https://casdoor.org/docs/provider/sms/overview",
|
url: "https://casdoor.org/docs/provider/sms/overview",
|
||||||
@ -1005,6 +1009,7 @@ export function getProviderTypeOptions(category) {
|
|||||||
{id: "Azure ACS", name: "Azure ACS"},
|
{id: "Azure ACS", name: "Azure ACS"},
|
||||||
{id: "Custom HTTP SMS", name: "Custom HTTP SMS"},
|
{id: "Custom HTTP SMS", name: "Custom HTTP SMS"},
|
||||||
{id: "Mock SMS", name: "Mock SMS"},
|
{id: "Mock SMS", name: "Mock SMS"},
|
||||||
|
{id: "OSON SMS", name: "OSON SMS"},
|
||||||
{id: "Infobip SMS", name: "Infobip SMS"},
|
{id: "Infobip SMS", name: "Infobip SMS"},
|
||||||
{id: "Tencent Cloud SMS", name: "Tencent Cloud SMS"},
|
{id: "Tencent Cloud SMS", name: "Tencent Cloud SMS"},
|
||||||
{id: "Baidu Cloud SMS", name: "Baidu Cloud SMS"},
|
{id: "Baidu Cloud SMS", name: "Baidu Cloud SMS"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user