Update appp.py
Browse files
appp.py
CHANGED
@@ -128,6 +128,7 @@ async def register_google(request: Request):
|
|
128 |
async def registration_successful(request: Request):
|
129 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
130 |
|
|
|
131 |
async def verify_recaptcha(recaptcha_token: str) -> bool:
|
132 |
recaptcha_secret = '6LeSJgwpAAAAAJrLrvlQYhRsOjf2wKXee_Jc4Z-k' # Replace with your reCAPTCHA secret key
|
133 |
recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify'
|
@@ -192,7 +193,7 @@ async def register_post(
|
|
192 |
return RedirectResponse(url="/registration_successful", status_code=status.HTTP_303_SEE_OTHER)
|
193 |
except HTTPException as e:
|
194 |
return templates.TemplateResponse("register.html", {"request": request, "error_message": e.detail})
|
195 |
-
|
196 |
@app.get("/", response_class=HTMLResponse)
|
197 |
async def landing(request: Request):
|
198 |
return templates.TemplateResponse("landing.html", {"request": request})
|
|
|
128 |
async def registration_successful(request: Request):
|
129 |
return templates.TemplateResponse("registration_successful.html", {"request": request})
|
130 |
|
131 |
+
|
132 |
async def verify_recaptcha(recaptcha_token: str) -> bool:
|
133 |
recaptcha_secret = '6LeSJgwpAAAAAJrLrvlQYhRsOjf2wKXee_Jc4Z-k' # Replace with your reCAPTCHA secret key
|
134 |
recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify'
|
|
|
193 |
return RedirectResponse(url="/registration_successful", status_code=status.HTTP_303_SEE_OTHER)
|
194 |
except HTTPException as e:
|
195 |
return templates.TemplateResponse("register.html", {"request": request, "error_message": e.detail})
|
196 |
+
|
197 |
@app.get("/", response_class=HTMLResponse)
|
198 |
async def landing(request: Request):
|
199 |
return templates.TemplateResponse("landing.html", {"request": request})
|