diff --git a/src/js/client.js b/src/js/client.js index 1d24596f3..c1fee6060 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1844,6 +1844,19 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.sendPasswordReset = function (callback) { + var data = { + identifier: this._userInfo.email + }; + + post('/api/v1/cloudron/password_reset_request', data, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 202) return callback(new ClientError(status, data)); + + callback(null); + }); + }; + Client.prototype.setTwoFactorAuthenticationSecret = function (callback) { var data = {}; diff --git a/src/views/profile.html b/src/views/profile.html index 66bc77343..1845c6d98 100644 --- a/src/views/profile.html +++ b/src/views/profile.html @@ -361,6 +361,11 @@ {{ user.fallbackEmail }} +