rename function to sendPasswordResetByIdentifier

This commit is contained in:
Girish Ramakrishnan
2020-07-09 14:42:39 -07:00
parent 9c53bfb7fb
commit 2469f4cdff
3 changed files with 10 additions and 11 deletions

View File

@@ -86,7 +86,7 @@ function logout(req, res) {
function passwordResetRequest(req, res, next) {
if (!req.body.identifier || typeof req.body.identifier !== 'string') return next(new HttpError(401, 'A identifier must be non-empty string'));
users.resetPasswordByIdentifier(req.body.identifier, function (error) {
users.sendPasswordResetByIdentifier(req.body.identifier, function (error) {
if (error && error.reason !== BoxError.NOT_FOUND) return next(BoxError.toHttpError(error));
next(new HttpSuccess(202, {}));