bitwarden_rs/src/db/models
BlackDex de86aa671e Fix Key Rotation during password change
When ticking the 'Also rotate my account's encryption key' box, the key
rotated ciphers are posted after the change of password.

During the password change the security stamp was reseted which made
the posted key's return an invalid auth. This reset is needed to prevent other clients from still being able to read/write.

This fixes this by adding a new database column which stores a stamp exception which includes the allowed route and the current security stamp before it gets reseted.
When the security stamp check fails it will check if there is a stamp exception and tries to match the route and security stamp.

Currently it only allows for one exception. But if needed we could expand it by using a Vec<UserStampException> and change the functions accordingly.

fixes #1240
2020-12-14 19:58:23 +01:00
..
attachment.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
cipher.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
collection.rs Fix #1206 2020-11-07 23:03:02 +01:00
device.rs Show latest active device as last active on admin page 2020-12-03 17:07:32 +01:00
favorite.rs Delete associated favorites when deleting a cipher or user 2020-08-26 01:27:38 -07:00
folder.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
mod.rs Fix Key Rotation during password change 2020-12-14 19:58:23 +01:00
org_policy.rs Ensure that a user is actually in an org when applying policies 2020-11-08 01:14:17 +03:00
organization.rs Fix #1206 2020-11-07 23:03:02 +01:00
two_factor.rs Fixed foreign-key (mariadb) errors. 2020-09-22 12:13:02 +02:00
user.rs Fix Key Rotation during password change 2020-12-14 19:58:23 +01:00