Set password functionality

This commit is contained in:
Jamie Curnow
2018-06-25 16:56:13 +10:00
parent 446921111e
commit 493bb77169
10 changed files with 183 additions and 87 deletions

View File

@ -52,6 +52,19 @@ module.exports = {
}
},
/**
* User Password Form
*
* @param model
*/
showUserPasswordForm: function (model) {
if (Cache.User.isAdmin() || model.get('id') === Cache.User.get('id')) {
require(['./main', './user/password'], function (App, View) {
App.UI.showModalDialog(new View({model: model}));
});
}
},
/**
* Error
*