diff --git a/openslides/users/static/js/users/site.js b/openslides/users/static/js/users/site.js index ca4a6d081..6b353a3e4 100644 --- a/openslides/users/static/js/users/site.js +++ b/openslides/users/static/js/users/site.js @@ -318,11 +318,17 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users']) type: 'input', templateOptions: { label: gettextCatalog.getString('Default password'), + description: '', addonRight: { text: 'Reset', class: 'fa fa-undo', onClick: function (options, scope) { $http.post( '/rest/users/user/' + scope.model.id + '/reset_password/', {'password': scope.model.default_password}) + .then(function() { + options.templateOptions.description = + gettextCatalog.getString('Password successfully resetted to:') + + ' ' + scope.model.default_password; + }); } } }