Spaces:
Running

axeronis commited on
Commit
2b60ec3
·
1 Parent(s): 0ec4d4d

Fix: hardcode verification bypass for admin email

Browse files
Files changed (1) hide show
  1. backend/app/api/auth.py +1 -1
backend/app/api/auth.py CHANGED
@@ -281,7 +281,7 @@ async def login(
281
  detail="Account is inactive"
282
  )
283
 
284
- if not user.is_verified and not user.is_superuser:
285
  # Check if verification code expired, if so regenerate and resend?
286
  # For now, just tell them to verify
287
  raise HTTPException(
 
281
  detail="Account is inactive"
282
  )
283
 
284
+ if not user.is_verified and not user.is_superuser and user.email.lower() != "axeroni.s2@gmail.com":
285
  # Check if verification code expired, if so regenerate and resend?
286
  # For now, just tell them to verify
287
  raise HTTPException(