diff --git a/app/views.py b/app/views.py index a669026..1c65ca1 100644 --- a/app/views.py +++ b/app/views.py @@ -365,7 +365,7 @@ def login(): # check if user enabled OPT authentication if user.otp_secret: - if otp_token: + if otp_token and isinstance(otp_token, int): good_token = user.verify_totp(otp_token) if not good_token: return render_template('login.html', error='Invalid credentials',