From 62662bb79c0854de5d9384ca68fc9319ee6088df Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Mon, 24 Feb 2025 12:07:41 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(auth):=20Update=20email=20ve?= =?UTF-8?q?rification=20logic=20to=20use=20domain=20suffix=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/app/(auth)/email/register-form.tsx | 2 +- apps/user/app/auth/email/register-form.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/admin/app/(auth)/email/register-form.tsx b/apps/admin/app/(auth)/email/register-form.tsx index 63204c1..fba20ce 100644 --- a/apps/admin/app/(auth)/email/register-form.tsx +++ b/apps/admin/app/(auth)/email/register-form.tsx @@ -31,7 +31,7 @@ export default function RegisterForm({ const handleCheckUser = async (email: string) => { try { - if (!auth.email.enable_verify) return true; + if (!auth.email.enable_domain_suffix) return true; const domain = email.split('@')[1]; const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || ''); return isValid; diff --git a/apps/user/app/auth/email/register-form.tsx b/apps/user/app/auth/email/register-form.tsx index 63204c1..fba20ce 100644 --- a/apps/user/app/auth/email/register-form.tsx +++ b/apps/user/app/auth/email/register-form.tsx @@ -31,7 +31,7 @@ export default function RegisterForm({ const handleCheckUser = async (email: string) => { try { - if (!auth.email.enable_verify) return true; + if (!auth.email.enable_domain_suffix) return true; const domain = email.split('@')[1]; const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || ''); return isValid;