{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/615","labels_url":"https://api.github.com/repos/meanjs/mean/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/615/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/615/events","html_url":"https://github.com/meanjs/mean/pull/615","id":92756420,"number":615,"title":"Admin module","user":{"login":"trainerbill","id":3578259,"avatar_url":"https://avatars.githubusercontent.com/u/3578259?v=3","gravatar_id":"","url":"https://api.github.com/users/trainerbill","html_url":"https://github.com/trainerbill","followers_url":"https://api.github.com/users/trainerbill/followers","following_url":"https://api.github.com/users/trainerbill/following{/other_user}","gists_url":"https://api.github.com/users/trainerbill/gists{/gist_id}","starred_url":"https://api.github.com/users/trainerbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trainerbill/subscriptions","organizations_url":"https://api.github.com/users/trainerbill/orgs","repos_url":"https://api.github.com/users/trainerbill/repos","events_url":"https://api.github.com/users/trainerbill/events{/privacy}","received_events_url":"https://api.github.com/users/trainerbill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/discuss","name":"discuss","color":"5319e7"},{"url":"https://api.github.com/repos/meanjs/mean/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/4","html_url":"https://github.com/meanjs/mean/milestones/0.4.x","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/4/labels","id":1035360,"number":4,"title":"0.4.x","description":"Issues that will be handled at some point in time through the 0.4.x release cycle","creator":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2015-03-23T22:38:37Z","updated_at":"2015-07-05T21:31:32Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-07-02T23:26:51Z","updated_at":"2015-07-06T08:16:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meanjs/mean/pulls/615","html_url":"https://github.com/meanjs/mean/pull/615","diff_url":"https://github.com/meanjs/mean/pull/615.diff","patch_url":"https://github.com/meanjs/mean/pull/615.patch"},"body":"I needed to make a small Admin module for a project I am working on.  All I needed was to have it add/remove roles from users but it is a good start.  Also I did not make any tests for the module.  Sorry, I did not have the time.  The module has view/list/update to users and pagination.  Its a start if you want to build on it.  Otherwise you can close the PR."},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/118769321","html_url":"https://github.com/meanjs/mean/pull/615#issuecomment-118769321","issue_url":"https://api.github.com/repos/meanjs/mean/issues/615","id":118769321,"user":{"login":"trainerbill","id":3578259,"avatar_url":"https://avatars.githubusercontent.com/u/3578259?v=3","gravatar_id":"","url":"https://api.github.com/users/trainerbill","html_url":"https://github.com/trainerbill","followers_url":"https://api.github.com/users/trainerbill/followers","following_url":"https://api.github.com/users/trainerbill/following{/other_user}","gists_url":"https://api.github.com/users/trainerbill/gists{/gist_id}","starred_url":"https://api.github.com/users/trainerbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trainerbill/subscriptions","organizations_url":"https://api.github.com/users/trainerbill/orgs","repos_url":"https://api.github.com/users/trainerbill/repos","events_url":"https://api.github.com/users/trainerbill/events{/privacy}","received_events_url":"https://api.github.com/users/trainerbill/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T08:16:48Z","updated_at":"2015-07-06T08:16:48Z","body":"I cleaned up a jshint issue on the server controller.  @rhutchison I don't know why but you are right.  I am only merging user.firstName, user.lastName and user.roles before the user.save so I have no idea why the password is changing.  I tried to delete user.password and user.salt before saving and it still changes.  Someone with more knowledge of the stack is going to have to figure this one out.  \r\n\r\nIf anyone wants anything else built for the AdminModule let me know.  Willing to help out.\r\n\r\nThanks!"}}