Update main.py
Browse files
main.py
CHANGED
@@ -26,7 +26,7 @@ templates = Jinja2Templates(directory="templates")
|
|
26 |
|
27 |
#from google.cloud import recaptchaenterprise_v1
|
28 |
#from google.cloud.recaptchaenterprise_v1 import Assessment
|
29 |
-
|
30 |
def create_assessment(
|
31 |
project_id: str, recaptcha_key: str, token: str, recaptcha_action: str
|
32 |
) -> Assessment:
|
@@ -87,7 +87,7 @@ def create_assessment(
|
|
87 |
assessment_name = client.parse_assessment_path(response.name).get("assessment")
|
88 |
print(f"Assessment name: {assessment_name}")
|
89 |
return response
|
90 |
-
|
91 |
# Dependency for verifying the user's token
|
92 |
def get_current_user(token: str = Depends(verify_token)):
|
93 |
if not token:
|
|
|
26 |
|
27 |
#from google.cloud import recaptchaenterprise_v1
|
28 |
#from google.cloud.recaptchaenterprise_v1 import Assessment
|
29 |
+
"""
|
30 |
def create_assessment(
|
31 |
project_id: str, recaptcha_key: str, token: str, recaptcha_action: str
|
32 |
) -> Assessment:
|
|
|
87 |
assessment_name = client.parse_assessment_path(response.name).get("assessment")
|
88 |
print(f"Assessment name: {assessment_name}")
|
89 |
return response
|
90 |
+
"""
|
91 |
# Dependency for verifying the user's token
|
92 |
def get_current_user(token: str = Depends(verify_token)):
|
93 |
if not token:
|