{"action":"created","issue":{"url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/10","repository_url":"https://api.github.com/repos/r-chowdhury/Flask-Course","labels_url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/10/comments","events_url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/10/events","html_url":"https://github.com/r-chowdhury/Flask-Course/issues/10","id":318756217,"number":10,"title":"Consider hashing password :-))))","user":{"login":"mzrzvi","id":5845401,"avatar_url":"https://avatars2.githubusercontent.com/u/5845401?v=4","gravatar_id":"","url":"https://api.github.com/users/mzrzvi","html_url":"https://github.com/mzrzvi","followers_url":"https://api.github.com/users/mzrzvi/followers","following_url":"https://api.github.com/users/mzrzvi/following{/other_user}","gists_url":"https://api.github.com/users/mzrzvi/gists{/gist_id}","starred_url":"https://api.github.com/users/mzrzvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzrzvi/subscriptions","organizations_url":"https://api.github.com/users/mzrzvi/orgs","repos_url":"https://api.github.com/users/mzrzvi/repos","events_url":"https://api.github.com/users/mzrzvi/events{/privacy}","received_events_url":"https://api.github.com/users/mzrzvi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-29T22:35:32Z","updated_at":"2018-04-29T22:36:42Z","closed_at":null,"author_association":"COLLABORATOR","body":"https://github.com/r-chowdhury/Flask-Course/blob/f637af46ba00c02e252f3dbcc26d0410af014f01/models/user.py#L14\r\n\r\n```python\r\nfrom flask_security.utils import hash_password, verify_password\r\n...\r\nclass UserModel(db.Model):\r\n...\r\n    def __init__(self, username, password):\r\n        self.username = username\r\n        self.password = hash_password(password)\r\n\r\n    def authenticate(self, password):\r\n        return verify_password(password, self.password)\r\n```"},"comment":{"url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/comments/385287329","html_url":"https://github.com/r-chowdhury/Flask-Course/issues/10#issuecomment-385287329","issue_url":"https://api.github.com/repos/r-chowdhury/Flask-Course/issues/10","id":385287329,"user":{"login":"mzrzvi","id":5845401,"avatar_url":"https://avatars2.githubusercontent.com/u/5845401?v=4","gravatar_id":"","url":"https://api.github.com/users/mzrzvi","html_url":"https://github.com/mzrzvi","followers_url":"https://api.github.com/users/mzrzvi/followers","following_url":"https://api.github.com/users/mzrzvi/following{/other_user}","gists_url":"https://api.github.com/users/mzrzvi/gists{/gist_id}","starred_url":"https://api.github.com/users/mzrzvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzrzvi/subscriptions","organizations_url":"https://api.github.com/users/mzrzvi/orgs","repos_url":"https://api.github.com/users/mzrzvi/repos","events_url":"https://api.github.com/users/mzrzvi/events{/privacy}","received_events_url":"https://api.github.com/users/mzrzvi/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T22:36:42Z","updated_at":"2018-04-29T22:36:42Z","author_association":"COLLABORATOR","body":"https://pythonhosted.org/Flask-Security/api.html?highlight=hash_password#flask_security.utils.hash_password"}}
{"actor":{"display_login":"mzrzvi"}}