From b9523bb0d74d31db1e314e505fdabc7ae4e4e7a3 Mon Sep 17 00:00:00 2001 From: Bernat Romagosa Date: Fri, 9 Feb 2018 17:55:10 +0100 Subject: [PATCH] Added password reset query --- cloud.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cloud.js b/cloud.js index 70445e6b..e69d9382 100644 --- a/cloud.js +++ b/cloud.js @@ -313,6 +313,16 @@ Cloud.prototype.changePassword = function ( }; +Cloud.prototype.resetPassword = function (username, onSuccess, onError) { + this.request( + 'POST', + '/users/' + username + '/resetpassword', + onSuccess, + onError, + 'Password reset request failed' + ); +}; + // Projects Cloud.prototype.saveProject = function (ide, onSuccess, onError) {