mirror of
https://github.com/exchanges-lab/view.git
synced 2026-08-05 05:36:06 +08:00
Add personal email to auth whitelist for local branch
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@
|
|||||||
const userData = parseJwt(credential);
|
const userData = parseJwt(credential);
|
||||||
|
|
||||||
// Email whitelist verification
|
// Email whitelist verification
|
||||||
const allowedEmails = ['your-email@gmail.com'];
|
const allowedEmails = ['xiannvweideta@gmail.com'];
|
||||||
if (!allowedEmails.includes(userData.email)) {
|
if (!allowedEmails.includes(userData.email)) {
|
||||||
document.getElementById('error-msg').textContent = 'Access denied: unauthorized email.';
|
document.getElementById('error-msg').textContent = 'Access denied: unauthorized email.';
|
||||||
document.getElementById('error-msg').style.display = 'block';
|
document.getElementById('error-msg').style.display = 'block';
|
||||||
|
|||||||
Reference in New Issue
Block a user