Mercurial > piecrust2
diff piecrust/commands/builtin/admin.py @ 640:59968ee07a07
admin: Don't require `bcrypt` for running FoodTruck with `chef`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 14 Feb 2016 22:06:32 -0800 |
parents | 200c7063affa |
children | 466bbddd121e |
line wrap: on
line diff
--- a/piecrust/commands/builtin/admin.py Sun Feb 14 19:44:54 2016 -0800 +++ b/piecrust/commands/builtin/admin.py Sun Feb 14 22:06:32 2016 -0800 @@ -95,7 +95,7 @@ fp.write(flask_config) def _generatePassword(self, ctx): - import bcrypt + from foodtruck import bcryptfallback as bcrypt binpw = ctx.args.password.encode('utf8') hashpw = bcrypt.hashpw(binpw, bcrypt.gensalt()).decode('utf8') logger.info(hashpw)