Skip to content

Commit

Permalink
check .env.dev:RECAPTCHA_SITE_KEY to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed Jul 3, 2024
1 parent 1be9a40 commit 46f6870
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions middleware/stemmaweb_middleware/controller/auth/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ def login():

# Verify captcha
if not recaptcha_verifier.verify(body.recaptcha_token):
# if env_recaptcha_site_key == '6LdZPq4ZAAAAAGx6vHrdtUfUr1HryiDoPu4piwiG':
# pass # .env.dev:RECAPTCHA_SITE_KEY
if env_recaptcha_site_key == '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI':
pass # .env.test:RECAPTCHA_SITE_KEY
if env_recaptcha_site_key == '6LdZPq4ZAAAAAGx6vHrdtUfUr1HryiDoPu4piwiG': # CAUTION ! tmp to check github actions
pass # .env.dev:RECAPTCHA_SITE_KEY
# elif env_recaptcha_site_key == '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI': # OK in local headless mode, not OK on github
# pass # .env.test:RECAPTCHA_SITE_KEY
else:
return abort(status=429, message="reCAPTCHA verification failed")

Expand Down

0 comments on commit 46f6870

Please sign in to comment.