mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Disable recaptcha
This commit is contained in:
parent
bfebfa2981
commit
eb5e096942
2 changed files with 5 additions and 4 deletions
3
app.py
3
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)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
gtag('config', 'G-H6D61RSBHR');
|
||||
</script>
|
||||
<script src="https://www.google.com/recaptcha/api.js"></script>
|
||||
<!-- <script src="https://www.google.com/recaptcha/api.js"></script> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -46,7 +46,7 @@
|
|||
data-sitekey="6LevCYccAAAAAAQ8XL6Bay_Nn22OyX9-9Shhi62M" data-callback='loadingAnimation'>Login
|
||||
登入</button>
|
||||
</form>
|
||||
<div class="disclaimer">
|
||||
<div class="disclaimer" hidden="hidden">
|
||||
This site is protected by reCAPTCHA and the Google
|
||||
<a target="_blank" href="https://policies.google.com/privacy">Privacy Policy</a> and
|
||||
<a target="_blank" href="https://policies.google.com/terms">Terms of Service</a> apply.
|
||||
|
@ -79,4 +79,4 @@
|
|||
<script src="/static/time.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue