mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Allow admin to change user password in admin panel
This commit is contained in:
parent
54036fd7a3
commit
22e369804b
3 changed files with 19 additions and 9 deletions
|
|
@ -372,6 +372,13 @@ Meteor.methods({
|
|||
Meteor.call('setUsername', username, userId);
|
||||
Meteor.call('setEmail', email, userId);
|
||||
},
|
||||
setPassword(newPassword, userId) {
|
||||
check(userId, String);
|
||||
check(newPassword, String);
|
||||
if(Meteor.user().isAdmin){
|
||||
Accounts.setPassword(userId, newPassword);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue