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:
Erik Jan de Wit 2024-03-25 14:05:34 +01:00 committed by GitHub
parent 7dfc263052
commit 9038353629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,