luqmaan / PriceChecker.py

A web server + scraper that notifies you when the price of products change.
3 stars 1 forks source link

Encrypt Passwords in the DB #10

Closed luqmaan closed 11 years ago

luqmaan commented 11 years ago

Right now the User password is stored as a simple string:

password = Column(String)  # password

Can you update the User.init and the User.check_password method's to reflect the new cryptography mechanism. The relavant code is in the flask branch, pychecker/models.py:

def check_password(self, password):
    return self.password == password

If you use a salt or anything similar, please store it in config.py (I'm sending an email with the config.py file to everybody).