Fix user.id in password reset request (Fixes #1752)
This commit is contained in:
parent
f98b4f7840
commit
9001456d19
@ -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/', {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user