diff --git a/lib/api.authentication.js b/lib/api.authentication.js index b6ecfca..44acfb8 100644 --- a/lib/api.authentication.js +++ b/lib/api.authentication.js @@ -299,7 +299,7 @@ var ldapLogin = module.exports.ldapLogin = function(restCtx, username, password, * @param {Object} callback.err An error that occurred, if any */ var getResetPasswordSecret = module.exports.getResetPasswordSecret = function(restCtx, username, callback) { - RestUtil.RestRequest(restCtx, '/api/auth/local/reset/init/' + username, 'GET', null, callback); + RestUtil.RestRequest(restCtx, '/api/auth/local/reset/secret/' + username, 'GET', null, callback); }; /** @@ -313,5 +313,5 @@ var getResetPasswordSecret = module.exports.getResetPasswordSecret = function(re * @param {Object} callback.err An error that occurred, if any */ var resetPassword = module.exports.resetPassword = function(restCtx, username, secret, newPassword, callback) { - RestUtil.RestRequest(restCtx, '/api/auth/local/reset/change/' + username, 'POST', {'secret': secret, 'newPassword': newPassword}, callback); + RestUtil.RestRequest(restCtx, '/api/auth/local/reset/password/' + username, 'POST', {'secret': secret, 'newPassword': newPassword}, callback); };