diff --git a/packages/frontend/src/pages/admin/security.vue b/packages/frontend/src/pages/admin/security.vue index 975a4a1265..9e6eda1310 100644 --- a/packages/frontend/src/pages/admin/security.vue +++ b/packages/frontend/src/pages/admin/security.vue @@ -88,6 +88,19 @@ SPDX-License-Identifier: AGPL-3.0-only + + Allowed Email Domains + + + + + + + Allowed Email Domains List + + + + Banned Email Domains @@ -193,6 +206,15 @@ const emailValidationForm = useForm({ fetchInstance(true); }); +const allowedEmailDomainsForm = useForm({ + allowedEmailDomains: meta.allowedEmailDomains?.join('\n') || '', +}, async (state) => { + await os.apiWithDialog('admin/update-meta', { + allowedEmailDomains: state.allowedEmailDomains.split('\n'), + }); + fetchInstance(true); +}); + const bannedEmailDomainsForm = useForm({ bannedEmailDomains: meta.bannedEmailDomains?.join('\n') || '', }, async (state) => {