Skip to content

Commit a16d832

Browse files
committed
fix(remove pkd email only )
1 parent d3b2c70 commit a16d832

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

app/login/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export default function AuthPage() {
141141
<p className="text-center text-blue-500 text-sm mt-6 font-medium">
142142
Secure authentication powered by Google
143143
</p>
144-
<p className="text-center text-orange-500 text-sm mt-6 font-medium">
145-
Sign in with pkd skp mail
146-
</p>
144+
147145
</div>
148146
</div>
149147
);

lib/firebase/auth.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ export async function signInWithGoogle(): Promise<{ user:User; isAdmin: boolean
2222
throw new Error('Google sign-in failed');
2323
}
2424

25-
// Restrict login to only emails from "gecskp.ac.in"
26-
// Restrict login to only emails from "gecskp.ac.in", except for a specific admin email
27-
const allowedEmailPattern = /^[a-zA-Z0-9]+@gecskp\.ac\.in$/;
28-
const adminOverrideEmail = "codecompass2024@gmail.com";
2925

30-
if (user.email !== adminOverrideEmail && !allowedEmailPattern.test(user.email)) {
31-
throw new Error('Only GEC SKP emails are allowed');
32-
}
3326

3427

3528

0 commit comments

Comments
 (0)