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"
|
||||
label={t("on")}
|
||||
labelOff={t("off")}
|
||||
isChecked={
|
||||
realm.duplicateEmailsAllowed ||
|
||||
(realm.loginWithEmailAllowed &&
|
||||
realm.registrationEmailAsUsername)
|
||||
}
|
||||
isChecked={realm.duplicateEmailsAllowed}
|
||||
onChange={(value) => {
|
||||
updateSwitchValue({
|
||||
duplicateEmailsAllowed: value,
|
||||
|
|
Loading…
Reference in a new issue