remove redundant code

This commit is contained in:
Son NK 2019-12-27 17:36:35 +01:00 committed by Son Nguyen Kim
parent 5b01071bec
commit de0368c20f

View file

@ -29,7 +29,6 @@ def mfa():
if otp_token_form.validate_on_submit():
totp = pyotp.TOTP(user.otp_secret)
if otp_token_form.validate_on_submit():
token = otp_token_form.token.data
if totp.verify(token):