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 登入 -
+