Add password reset action to profile page
This commit is contained in:
@@ -17,6 +17,14 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
|
||||
$translate.use(newVal.id);
|
||||
});
|
||||
|
||||
$scope.sendPasswordReset = function () {
|
||||
Client.sendPasswordReset(function (error) {
|
||||
if (error) return console.error('Failed to reset password:', error);
|
||||
|
||||
Client.notify('Password reset successful', 'Email sent to ' + $scope.user.fallbackEmail, false, 'success');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.twoFactorAuthentication = {
|
||||
busy: false,
|
||||
error: null,
|
||||
|
||||
Reference in New Issue
Block a user