Realm email doesn't default to port 25 (#3129)
This commit is contained in:
parent
f76259088e
commit
ed139b62cd
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,10 @@ export const RealmSettingsEmailTab = ({
|
|||
}
|
||||
|
||||
const savedRealm = { ...realm, ...form };
|
||||
|
||||
// For default value, back end is expecting null instead of empty string
|
||||
if (savedRealm.smtpServer?.port === "") savedRealm.smtpServer.port = null;
|
||||
|
||||
await adminClient.realms.update({ realm: realmName }, savedRealm);
|
||||
setRealm(savedRealm);
|
||||
addAlert(t("saveSuccess"), AlertVariant.success);
|
||||
|
@ -93,6 +97,9 @@ export const RealmSettingsEmailTab = ({
|
|||
serverSettings[key] = mapperFn(serverSettings[key]);
|
||||
}
|
||||
|
||||
// For default value, back end is expecting null instead of 0
|
||||
if (serverSettings.port === 0) serverSettings.port = null;
|
||||
|
||||
try {
|
||||
const registered = await registerEmailIfNeeded();
|
||||
|
||||
|
|
Loading…
Reference in a new issue