Pascal de Bruijn 846c03f154 models/user.py: add non-zero valid_window to totp.verify
PyOTP's totp.verify defaults to the valid_window of zero, which means
it will reject valid codes, if submitted just past the 30 sec window.
It also means, users will run into authentication issues very quickly
if their phones time-sync isn't perfect.

Therefore valid_window should at the very least be 1 or more, settting
it higher trades security for robustness, especially with regard to
time desync issues.
2022-09-07 14:23:34 +02:00
..
2020-06-19 08:47:51 +07:00
2019-12-02 10:32:03 +07:00
2019-12-02 10:32:03 +07:00
2020-06-19 08:47:51 +07:00
2020-06-19 08:47:51 +07:00
2022-06-18 18:58:39 +02:00
2020-06-19 08:47:51 +07:00
2020-06-19 08:47:51 +07:00