Fixes #2659, security issue with required password change.
parent
22e2f543cb
commit
1d217aac05
@ -1,9 +0,0 @@ |
||||
Meteor.methods({ |
||||
clearRequirePasswordChange: function() { |
||||
if (!Meteor.userId()) { |
||||
throw new Meteor.Error('invalid-user', '[methods] clearRequirePasswordChange -> Invalid user'); |
||||
} |
||||
|
||||
return RocketChat.models.Users.unsetRequirePasswordChange(Meteor.userId()); |
||||
} |
||||
}); |
||||
Loading…
Reference in new issue