Skip to content

Commit

Permalink
Changed path
Browse files Browse the repository at this point in the history
  • Loading branch information
Salla Karppinen committed Jun 20, 2017
1 parent 1655e7a commit 2470b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api.authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand All @@ -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);
};

0 comments on commit 2470b8f

Please sign in to comment.