only use the value on the server (#28169)
fixes: #26364 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
7dfc263052
commit
9038353629
1 changed files with 1 additions and 5 deletions
|
@ -204,11 +204,7 @@ export const RealmSettingsLoginTab = ({
|
||||||
data-testid="duplicate-emails-switch"
|
data-testid="duplicate-emails-switch"
|
||||||
label={t("on")}
|
label={t("on")}
|
||||||
labelOff={t("off")}
|
labelOff={t("off")}
|
||||||
isChecked={
|
isChecked={realm.duplicateEmailsAllowed}
|
||||||
realm.duplicateEmailsAllowed ||
|
|
||||||
(realm.loginWithEmailAllowed &&
|
|
||||||
realm.registrationEmailAsUsername)
|
|
||||||
}
|
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
updateSwitchValue({
|
updateSwitchValue({
|
||||||
duplicateEmailsAllowed: value,
|
duplicateEmailsAllowed: value,
|
||||||
|
|
Loading…
Reference in a new issue