File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 - z A - Z 0 - 9 ] + @ g e c s k p \. a c \. i n $ / ;
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
You can’t perform that action at this time.
0 commit comments