Skip to content
Snippets Groups Projects
Verified Commit 606ea788 authored by ornanovitch's avatar ornanovitch
Browse files

Merge branch '89-activation-de-la-2fa-avec-totp-et-interface-utilisateurice'...

Merge branch '89-activation-de-la-2fa-avec-totp-et-interface-utilisateurice' of forge.tedomum.net:acides/hiboo into 89-activation-de-la-2fa-avec-totp-et-interface-utilisateurice
parents f87b7a5d 68c39e76
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ def totp():
def totp_enable():
user = flask_login.current_user
if models.Auth.TOTP not in user.auths:
auth = models.Auth(models.Auth.TOTP)
auth = models.Auth(models.Auth.TOTP, enable=False)
auth.set_otp_key()
user.auths[models.Auth.TOTP] = auth
models.db.session.add(auth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment