From 0c78030fbe028d6b3c0da1d227cfb1ff4aefeb2a Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 22 Nov 2022 14:37:22 +0530 Subject: [PATCH] fix(gui): email validation correction Signed-off-by: Pranav C --- packages/nc-gui/components/account/UsersModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/account/UsersModal.vue b/packages/nc-gui/components/account/UsersModal.vue index 14665b8561..2eab6b1118 100644 --- a/packages/nc-gui/components/account/UsersModal.vue +++ b/packages/nc-gui/components/account/UsersModal.vue @@ -4,7 +4,7 @@ import { Form, computed, extractSdkResponseErrorMsg, - isEmail, + validateEmail, message, ref, useCopy, @@ -52,7 +52,7 @@ const validators = computed(() => { callback('Email is required') return } - const invalidEmails = (value || '').split(/\s*,\s*/).filter((e: string) => !isEmail(e)) + const invalidEmails = (value || '').split(/\s*,\s*/).filter((e: string) => !validateEmail(e)) if (invalidEmails.length > 0) { callback(`${invalidEmails.length > 1 ? ' Invalid emails:' : 'Invalid email:'} ${invalidEmails.join(', ')} `) } else {