🔥 Reset password now working

This commit is contained in:
2024-07-29 01:36:44 +08:00
parent 3afe173da7
commit 96efff85da
9 changed files with 506 additions and 186 deletions

View File

@@ -43,13 +43,21 @@ module.exports = (sequelize) => {
accountType: {
type: DataTypes.TINYINT(2),
allowNull: false,
defaultValue: 0
defaultValue: 0,
},
isArchived: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
},
resetPasswordToken: {
type: DataTypes.STRING(64),
allowNull: true,
},
resetPasswordExpireTime: {
type: DataTypes.DATE,
allowNull: true,
},
},
{
tableName: "users",