Merge pull request #1766 from emanuelschuetze/fix1752
Fix user.id in password reset request (Fixes #1752)
This commit is contained in:
commit
c9adeb7fbb
@ -316,9 +316,9 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
|||||||
type: 'input',
|
type: 'input',
|
||||||
templateOptions: {
|
templateOptions: {
|
||||||
label: gettextCatalog.getString('Default password'),
|
label: gettextCatalog.getString('Default password'),
|
||||||
addonRight: { text: 'Reset', class: 'fa fa-undo', onClick: function () {
|
addonRight: { text: 'Reset', class: 'fa fa-undo', onClick:
|
||||||
// TODO: find a way to get user.id
|
function (options, scope) {
|
||||||
//$http.post('/rest/users/user/' + model.id + '/reset_password/', {})
|
$http.post('/rest/users/user/' + scope.model.id + '/reset_password/', {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user