comparison foodtruck/bcryptfallback.py @ 772:3885421c29a3

admin: Make the whole FoodTruck site into a blueprint. This makes it possible to use an app factory, which makes it easier to write unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 03 Jul 2016 07:54:54 -0700
parents 59968ee07a07
children
comparison
equal deleted inserted replaced
771:673979a5d548 772:3885421c29a3
35 35
36 def __init__(self, app=None): 36 def __init__(self, app=None):
37 self.generate_password_hash = generate_password_hash 37 self.generate_password_hash = generate_password_hash
38 self.check_password_hash = check_password_hash 38 self.check_password_hash = check_password_hash
39 39
40 def init_app(self, app):
41 pass
42
40 Bcrypt = SHA512Fallback 43 Bcrypt = SHA512Fallback
41 44
42 45
43 if print_warning: 46 if print_warning:
44 logging.warning("Bcrypt not available... falling back to SHA512.") 47 logging.warning("Bcrypt not available... falling back to SHA512.")