{"action":"created","issue":{"url":"https://api.github.com/repos/sh4nks/flaskbb/issues/164","labels_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/164/comments","events_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/164/events","html_url":"https://github.com/sh4nks/flaskbb/issues/164","id":124569892,"number":164,"title":"Editing user clobbers password","user":{"login":"gordonjcp","id":147207,"avatar_url":"https://avatars.githubusercontent.com/u/147207?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonjcp","html_url":"https://github.com/gordonjcp","followers_url":"https://api.github.com/users/gordonjcp/followers","following_url":"https://api.github.com/users/gordonjcp/following{/other_user}","gists_url":"https://api.github.com/users/gordonjcp/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonjcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonjcp/subscriptions","organizations_url":"https://api.github.com/users/gordonjcp/orgs","repos_url":"https://api.github.com/users/gordonjcp/repos","events_url":"https://api.github.com/users/gordonjcp/events{/privacy}","received_events_url":"https://api.github.com/users/gordonjcp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-02T01:37:35Z","updated_at":"2016-01-07T22:26:18Z","closed_at":"2016-01-07T14:16:43Z","body":"Edit a user, their password is blanked.\r\n\r\nedit:\r\nhttps://github.com/sh4nks/flaskbb/blob/master/flaskbb/management/views.py#L166\r\nform.populate_obj(user) appears to smash the password field\r\n\r\nedit: this seems to work, but feels a bit messy - comments?\r\n```\r\nif form.validate_on_submit():\r\n    _saved = user.password\r\n    form.populate_obj(user)\r\n    if not form.password.data:\r\n        user._password = _saved\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sh4nks/flaskbb/issues/comments/169826469","html_url":"https://github.com/sh4nks/flaskbb/issues/164#issuecomment-169826469","issue_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/164","id":169826469,"user":{"login":"gordonjcp","id":147207,"avatar_url":"https://avatars.githubusercontent.com/u/147207?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonjcp","html_url":"https://github.com/gordonjcp","followers_url":"https://api.github.com/users/gordonjcp/followers","following_url":"https://api.github.com/users/gordonjcp/following{/other_user}","gists_url":"https://api.github.com/users/gordonjcp/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonjcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonjcp/subscriptions","organizations_url":"https://api.github.com/users/gordonjcp/orgs","repos_url":"https://api.github.com/users/gordonjcp/repos","events_url":"https://api.github.com/users/gordonjcp/events{/privacy}","received_events_url":"https://api.github.com/users/gordonjcp/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T22:26:18Z","updated_at":"2016-01-07T22:26:18Z","body":"Weird.  Merging the changes from upstream doesn't fix the problem but a clean checkout does.  <shrug>  Fixed now, anyway."}}