mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-12 06:33:57 +00:00
Updated authenticator TOTP
- Added security check for previouse used codes - Allow TOTP codes with 1 step back and forward when there is a time drift. This means in total 3 codes could be valid. But only newer codes then the previouse used codes are excepted after that.
This commit is contained in:
parent
45d9d8db94
commit
ebf40099f2
12 changed files with 60 additions and 10 deletions
|
@ -0,0 +1 @@
|
|||
ALTER TABLE twofactor ADD COLUMN last_used INTEGER NOT NULL DEFAULT 0;
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE twofactor ADD COLUMN last_used INTEGER NOT NULL DEFAULT 0;
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE twofactor ADD COLUMN last_used INTEGER NOT NULL DEFAULT 0;
|
Loading…
Add table
Add a link
Reference in a new issue