This caught me out. Adding a warning.

This commit is contained in:
Michael Kaye 2018-05-08 20:51:27 +01:00
parent da602419b2
commit 24a90d0c00
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ if __name__ == "__main__":
bcrypt_rounds = config.get("bcrypt_rounds", bcrypt_rounds) bcrypt_rounds = config.get("bcrypt_rounds", bcrypt_rounds)
password_config = config.get("password_config", {}) password_config = config.get("password_config", {})
password_pepper = password_config.get("pepper", password_pepper) password_pepper = password_config.get("pepper", password_pepper)
else:
print "Warning: no config file passed with -c flag on commandline. The pepper and bcrypt_rounds configuration options may not be what you expect"
password = args.password password = args.password
if not password: if not password: