From 9001456d19e8ad7441229e8f382c95f78659bcbe Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 10 Dec 2015 15:03:18 +0100 Subject: [PATCH] Fix user.id in password reset request (Fixes #1752) --- openslides/users/static/js/users/site.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/users/static/js/users/site.js b/openslides/users/static/js/users/site.js index ee5a8009b..9e19f8338 100644 --- a/openslides/users/static/js/users/site.js +++ b/openslides/users/static/js/users/site.js @@ -316,9 +316,9 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users']) type: 'input', templateOptions: { label: gettextCatalog.getString('Default password'), - addonRight: { text: 'Reset', class: 'fa fa-undo', onClick: function () { - // TODO: find a way to get user.id - //$http.post('/rest/users/user/' + model.id + '/reset_password/', {}) + addonRight: { text: 'Reset', class: 'fa fa-undo', onClick: + function (options, scope) { + $http.post('/rest/users/user/' + scope.model.id + '/reset_password/', {}) } } }