Skip to content

Commit 8dfa848

Browse files
committed
safe guarding the admin email verification
1 parent 2eb6040 commit 8dfa848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/utils/auth-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,5 @@ export async function getUserContextJwtFromCookie(): Promise<
227227
}
228228

229229
export function isMobilityDatabaseAdmin(email: string | undefined): boolean {
230-
return email?.endsWith('@mobilitydata.org') === true;
230+
return email?.trim().toLocaleLowerCase().endsWith('@mobilitydata.org') === true;
231231
}

0 commit comments

Comments
 (0)