UPDATE: Added salt_recorder table to record the salts used to generate token to reset password

This commit is contained in:
JustIceO7
2025-02-06 02:59:12 +00:00
parent 89d53d31fc
commit 3b075c1015
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@@ -59,4 +59,12 @@ CREATE TABLE followed_categories
PRIMARY KEY (user_id, category_id),
FOREIGN KEY(user_id) REFERENCES users(user_id) ON DELETE CASCADE,
FOREIGN KEY(category_id) REFERENCES categories(category_id) ON DELETE CASCADE
);
DROP TABLE IF EXISTS salt_recorder;
CREATE TABLE salt_recorder
(
token VARCHAR(128),
salt_value VARCHAR(64),
PRIMARY KEY(token, salt_value)
);