import hashlib


class User:

    def __init__(self, email, pass_hash, pass_salt):
        self.email = email
        self.pass_hash = pass_hash
        self.pass_salt = pass_salt

    def from_document(document):
        return User(document.get('email', None), document.get('pass_hash',
            None), document.get('pass_salt', None))

43276c749aec8e0613ddea8e31c3d1288cf11eec
<mask token>

<mask token>


class User:

    def __init__(self, email, pass_hash, pass_salt):
        self.email = email
        self.pass_hash = pass_hash
        self.pass_salt = pass_salt
    <mask token>

<mask token>


class User:

    def __init__(self, email, pass_hash, pass_salt):
        self.email = email
        self.pass_hash = pass_hash
        self.pass_salt = pass_salt

    def from_document(document):
        return User(document.get('email', None), document.get('pass_hash',
            None), document.get('pass_salt', None))

import hashlib


class User:

    def __init__(self, email, pass_hash, pass_salt):
        self.email = email
        self.pass_hash = pass_hash
        self.pass_salt = pass_salt

    def from_document(document):
        return User(document.get('email', None), document.get('pass_hash',
            None), document.get('pass_salt', None))
