comparison piecrust/admin/bcryptfallback.py @ 783:a9f4a6e60b0b

admin: Fix various crashes caused by incorrect Blueprint setup.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 28 Aug 2016 20:48:05 -0700
parents 5e91bc0e3b4d
children 0d699f04968c
comparison
equal deleted inserted replaced
782:df58592b40f8 783:a9f4a6e60b0b
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): 40 def init_app(self, app):
41 pass 41 app.bcrypt = self
42 42
43 Bcrypt = SHA512Fallback 43 Bcrypt = SHA512Fallback
44 44
45 45
46 if print_warning: 46 if print_warning: