fix: Invalidate access tokens on password change
parent
e9a65bb641
commit
266a762641
@ -0,0 +1,11 @@
|
|||||||
|
module.exports.up = async (knex) =>
|
||||||
|
knex.schema.table('user_account', (table) => {
|
||||||
|
/* Columns */
|
||||||
|
|
||||||
|
table.timestamp('password_changed_at', true).defaultsTo(new Date(0).toUTCString());
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports.down = async (knex) =>
|
||||||
|
knex.schema.table('user_account', (table) => {
|
||||||
|
table.dropColumn('password_changed_at');
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue