diff --git a/apps/user/app/auth/email/register-form.tsx b/apps/user/app/auth/email/register-form.tsx index 69924c6..a6d04bc 100644 --- a/apps/user/app/auth/email/register-form.tsx +++ b/apps/user/app/auth/email/register-form.tsx @@ -31,11 +31,10 @@ export default function RegisterForm({ const handleCheckUser = async (email: string) => { try { + if (!auth.email.enable_verify) return true; const domain = email.split('@')[1]; - const isValid = - !auth.email.enable_verify || - auth.email?.domain_suffix_list.split('\n').includes(domain || ''); - return !isValid; + const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || ''); + return isValid; } catch (error) { console.log('Error checking user:', error); return false;