Replace entry with artifact and add entity

This commit is contained in:
2022-01-05 03:04:43 +02:00
parent e22f85a1aa
commit 7be5200094
28 changed files with 560 additions and 523 deletions

View File

@@ -30,7 +30,7 @@ module.exports = function (options) {
]
}).then(user => {
if (user) {
// TODO: Check if user already created a password reset entry to save on a db transaction
// TODO: Check if user already created a password reset artifact to save on a db transaction
return Promise.all([
user.userEmails[0],
user.userPasswordReset ? user.userPasswordReset : db.UserPasswordReset.create({
@@ -84,7 +84,7 @@ module.exports = function (options) {
pageTitle: "Password Reset Initiated - Mantra"
})
} else {
next(`Failed to create a user password reset entry (user ${request.body.email} doesn't exist)`)
next(`Failed to create a user password reset artifact (user ${request.body.email} doesn't exist)`)
}
}).catch (error => {
next(error)