Skip to content

Commit 793cb19

Browse files
committed
Reset password for a User endpoint add param to res
1 parent ae8570e commit 793cb19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/api/users.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,8 @@ module.exports = (db, server, userHandler, settingsHandler) => {
21502150
description: 'Success',
21512151
model: Joi.object({
21522152
success: successRes,
2153-
password: Joi.string().required().description('Temporary password')
2153+
password: Joi.string().required().description('Temporary password'),
2154+
validAfter: Joi.date().empty('').description('The date the password is valid after')
21542155
})
21552156
}
21562157
}

0 commit comments

Comments
 (0)