Commit Graph

8 Commits

Author SHA1 Message Date
Adrià Casajús
faeddc365c
Display recovery codes for mfa only once (#1317)
* Recovery codes can only be shown after adding a 2FA code and cannot be seen afterwards

* Added recovery codes fix

* Updated models and script

* Formatting

* Format

* Added base code

* Updated wording

* Set the config by default

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-10-03 12:32:45 +02:00
Son
372466ab06 do not use flask-sqlalchemy
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son NK
0a4fc76b61 optimize import 2020-10-15 16:45:28 +02:00
Sibren Vasse
097ac771b0 Prevent OTP replay attacks by invalidating last token 2020-05-24 19:23:16 +02:00
devStorm
f79eb90d2a
sudo mode 2020-05-18 02:14:40 -07:00
Son NK
043ecd4fac redirect user to recovery codes page after MFA setup. Remove all recovery codes when user is no more MFA. 2020-05-17 10:11:38 +02:00
Son NK
76eec998ea User who has enabled MFA can cancel MFA 2019-12-29 15:10:40 +01:00
Son NK
e5b10b28a6 Create MFA Setup page if user enable MFA 2019-12-27 16:53:07 +00:00