Spaces:
Sleeping
Sleeping
Handling Email checks
Browse files
main.py
CHANGED
|
@@ -137,6 +137,8 @@ async def handle_task(req: TaskRequest, background_tasks: BackgroundTasks):
|
|
| 137 |
# 1. Secret verification
|
| 138 |
if req.secret != SHARED_SECRET:
|
| 139 |
raise HTTPException(status_code=403, detail="Invalid secret")
|
|
|
|
|
|
|
| 140 |
|
| 141 |
# Add the processing to background tasks
|
| 142 |
background_tasks.add_task(process_task_in_background, req)
|
|
|
|
| 137 |
# 1. Secret verification
|
| 138 |
if req.secret != SHARED_SECRET:
|
| 139 |
raise HTTPException(status_code=403, detail="Invalid secret")
|
| 140 |
+
if req.email!="22f3000730@ds.study.iitm.ac.in":
|
| 141 |
+
raise HTTPException(status_code=403, detail="Invalid email")
|
| 142 |
|
| 143 |
# Add the processing to background tasks
|
| 144 |
background_tasks.add_task(process_task_in_background, req)
|