Remove hardcode of email restriction.

This commit is contained in:
0xcathiefish
2026-04-06 08:14:49 +00:00
parent 9bc9222be5
commit 59c65446f9
4 changed files with 1 additions and 14 deletions
-8
View File
@@ -126,14 +126,6 @@
const credential = response.credential;
const userData = parseJwt(credential);
// Email whitelist verification
const allowedEmails = window.ALLOWED_EMAILS || ['your-email@gmail.com'];
if (!allowedEmails.includes(userData.email)) {
document.getElementById('error-msg').textContent = 'Access denied: unauthorized email.';
document.getElementById('error-msg').style.display = 'block';
return;
}
const user = {
email: userData.email,
name: userData.name,