Replace entry with artifact and add entity
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user