UPDATE: Added salt_recorder table to record the salts used to generate token to reset password
This commit is contained in:
Binary file not shown.
@@ -59,4 +59,12 @@ CREATE TABLE followed_categories
|
|||||||
PRIMARY KEY (user_id, category_id),
|
PRIMARY KEY (user_id, category_id),
|
||||||
FOREIGN KEY(user_id) REFERENCES users(user_id) ON DELETE CASCADE,
|
FOREIGN KEY(user_id) REFERENCES users(user_id) ON DELETE CASCADE,
|
||||||
FOREIGN KEY(category_id) REFERENCES categories(category_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)
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user