Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-25 05:40:29 +01:00
ca20b3d80c
- Changed the date of the migration folders to be from this date. - Removed a lot is_email_domain_allowed checks. This check only needs to be done during the invite it self, else everything else will fail even if a user has an account created via the /admin interface which bypasses that specific check! Also, the check was at the wrong place anyway's, since it would only not send out an e-mail, but would still have allowed an not allowed domain to be used when e-mail would have been disabled. While that check always works, even if sending e-mails is disasbled. - Added an extra allowed route during password/key-rotation change which updates/checks the public-key afterwards. - A small change with some `Some` and `None` orders. - Change the new invite object to only generate the UTC time once, since it could be possible that there will be a second difference, and we only need to call it just once. by black.dex@gmail.com Signed-off-by: thelittlefireman <thelittlefireman@users.noreply.github.com>
14 Zeilen
620 B
SQL
14 Zeilen
620 B
SQL
CREATE TABLE emergency_access (
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
grantor_uuid CHAR(36) REFERENCES users (uuid),
|
|
grantee_uuid CHAR(36) REFERENCES users (uuid),
|
|
email VARCHAR(255),
|
|
key_encrypted TEXT,
|
|
atype INTEGER NOT NULL,
|
|
status INTEGER NOT NULL,
|
|
wait_time_days INTEGER NOT NULL,
|
|
recovery_initiated_at TIMESTAMP,
|
|
last_notification_at TIMESTAMP,
|
|
updated_at TIMESTAMP NOT NULL,
|
|
created_at TIMESTAMP NOT NULL
|
|
);
|