From b7b43ceb86c4b1aa1611953ec0621a72f9f77d80 Mon Sep 17 00:00:00 2001 From: SHADIL AM <109820522+shadil-rayyan@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:28:32 +0530 Subject: [PATCH 1/5] Update auth.ts removed teh pkd email checkings --- lib/firebase/auth.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/firebase/auth.ts b/lib/firebase/auth.ts index e0b841c..17892f5 100644 --- a/lib/firebase/auth.ts +++ b/lib/firebase/auth.ts @@ -22,14 +22,7 @@ export async function signInWithGoogle(): Promise<{ user:User; isAdmin: boolean throw new Error('Google sign-in failed'); } - // Restrict login to only emails from "gecskp.ac.in" - // Restrict login to only emails from "gecskp.ac.in", except for a specific admin email -const allowedEmailPattern = /^[a-zA-Z0-9]+@gecskp\.ac\.in$/; -const adminOverrideEmail = "codecompass2024@gmail.com"; - -if (user.email !== adminOverrideEmail && !allowedEmailPattern.test(user.email)) { - throw new Error('Only GEC SKP emails are allowed'); -} + From 7f48a81ff1809f8c6c5c291d3270942aa5a00079 Mon Sep 17 00:00:00 2001 From: SHADIL AM <109820522+shadil-rayyan@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:29:46 +0530 Subject: [PATCH 2/5] Update page.tsx removed the only pkd line --- app/login/page.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/login/page.tsx b/app/login/page.tsx index 9734f76..2c31ac2 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -141,9 +141,7 @@ export default function AuthPage() {
Secure authentication powered by Google
-- Sign in with pkd skp mail -
+ ); From de082995b8e540bb9ee04c8f1e7c580c1a1d646c Mon Sep 17 00:00:00 2001 From: shadil-rayyan