mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
feat: fix the Email provider fails to match bug in GetProviderByCategoryAndRule()
This commit is contained in:
@ -84,7 +84,7 @@ class ProviderTable extends React.Component {
|
||||
|
||||
// If the provider is email or SMS, set the rule to "all" instead of the default "None"
|
||||
if (provider.category === "Email" || provider.category === "SMS") {
|
||||
this.updateField(table, index, "rule", "all");
|
||||
this.updateField(table, index, "rule", "All");
|
||||
}
|
||||
}} >
|
||||
{
|
||||
@ -259,12 +259,12 @@ class ProviderTable extends React.Component {
|
||||
);
|
||||
} else if (record.provider?.category === "SMS" || record.provider?.category === "Email") {
|
||||
if (text === "None") {
|
||||
text = "all";
|
||||
text = "All";
|
||||
}
|
||||
return (
|
||||
<Select virtual={false} style={{width: "100%"}}
|
||||
value={text}
|
||||
defaultValue="all"
|
||||
defaultValue="All"
|
||||
onChange={value => {
|
||||
this.updateField(table, index, "rule", value);
|
||||
}}>
|
||||
|
Reference in New Issue
Block a user