0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-05-28 17:53:50 +02:00
bitwarden_rs/migrations/mysql/2019-10-10-083032_add_column_to_twofactor/up.sql
BlackDex ebf40099f2 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.
2019-10-10 17:32:20 +02:00

1 line
70 B
SQL

ALTER TABLE twofactor ADD COLUMN last_used INTEGER NOT NULL DEFAULT 0;