From eb5e096942ae4008d6a12a94120c6a01bd6dc722 Mon Sep 17 00:00:00 2001 From: aaronleetw Date: Sat, 2 Oct 2021 02:38:28 +0000 Subject: [PATCH] Disable recaptcha --- app.py | 3 ++- templates/login.html | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 97b563d..5b55512 100644 --- a/app.py +++ b/app.py @@ -35,6 +35,7 @@ def check_login_status(): def verify_recaptcha(response): + return True data = { 'secret': os.environ.get('RECAPTCHA_SECRET'), 'response': response, @@ -56,7 +57,7 @@ def index(): email = request.form['username'] + "@group-attendance.fhjh.tp.edu.tw" if check_login_status(): try: - if (verify_recaptcha(request.form['g-recaptcha-response'])): + if (verify_recaptcha("")): user = auth.sign_in_with_email_and_password( email, request.form['password']) print("Login SUCC:", email, flush=True) diff --git a/templates/login.html b/templates/login.html index ffcb825..dff493b 100644 --- a/templates/login.html +++ b/templates/login.html @@ -19,7 +19,7 @@ gtag('config', 'G-H6D61RSBHR'); - + @@ -46,7 +46,7 @@ data-sitekey="6LevCYccAAAAAAQ8XL6Bay_Nn22OyX9-9Shhi62M" data-callback='loadingAnimation'>Login 登入 -
+