diff --git a/app/models.py b/app/models.py index 8b2babc..7e87d08 100644 --- a/app/models.py +++ b/app/models.py @@ -90,7 +90,7 @@ class User(db.Model): def verify_totp(self, token): totp = pyotp.TOTP(self.otp_secret) - return totp.verify(int(token)) + return totp.verify(token) def get_hashed_password(self, plain_text_password=None): # Hash a password for the first time