mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 23:23:50 +08:00
Support SUBMAIL email provider
This commit is contained in:
@ -131,6 +131,9 @@ class ProviderEditPage extends React.Component {
|
|||||||
} else if (this.state.provider.category === "SMS" && this.state.provider.type === "Huawei Cloud SMS") {
|
} else if (this.state.provider.category === "SMS" && this.state.provider.type === "Huawei Cloud SMS") {
|
||||||
text = i18next.t("provider:Channel No.");
|
text = i18next.t("provider:Channel No.");
|
||||||
tooltip = i18next.t("provider:Channel No. - Tooltip");
|
tooltip = i18next.t("provider:Channel No. - Tooltip");
|
||||||
|
} else if (this.state.provider.category === "Email" && this.state.provider.type === "SUBMAIL") {
|
||||||
|
text = i18next.t("provider:App ID");
|
||||||
|
tooltip = i18next.t("provider:App ID - Tooltip");
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -199,6 +202,8 @@ class ProviderEditPage extends React.Component {
|
|||||||
this.updateProviderField("type", "GitHub");
|
this.updateProviderField("type", "GitHub");
|
||||||
} else if (value === "Email") {
|
} else if (value === "Email") {
|
||||||
this.updateProviderField("type", "Default");
|
this.updateProviderField("type", "Default");
|
||||||
|
this.updateProviderField("host", "smtp.example.com");
|
||||||
|
this.updateProviderField("port", 465);
|
||||||
this.updateProviderField("disableSsl", false);
|
this.updateProviderField("disableSsl", false);
|
||||||
this.updateProviderField("title", "Casdoor Verification Code");
|
this.updateProviderField("title", "Casdoor Verification Code");
|
||||||
this.updateProviderField("content", "You have requested a verification code at Casdoor. Here is your code: %s, please enter in 5 minutes.");
|
this.updateProviderField("content", "You have requested a verification code at Casdoor. Here is your code: %s, please enter in 5 minutes.");
|
||||||
|
@ -633,6 +633,7 @@ export function getProviderTypeOptions(category) {
|
|||||||
return (
|
return (
|
||||||
[
|
[
|
||||||
{id: "Default", name: "Default"},
|
{id: "Default", name: "Default"},
|
||||||
|
{id: "SUBMAIL", name: "SUBMAIL"},
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} else if (category === "SMS") {
|
} else if (category === "SMS") {
|
||||||
|
Reference in New Issue
Block a user