mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
remove redundant code
This commit is contained in:
parent
5b01071bec
commit
de0368c20f
1 changed files with 14 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue