Skip to content

Commit

Permalink
Use from_config_file in doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
DasIch committed Apr 3, 2013
1 parent 0b20858 commit 4266e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -8,7 +8,7 @@ on the fly::

from pwhash import PasswordHasher

pwhasher = PasswordHasher.from_config(config)
pwhasher = PasswordHasher.from_config_file("pwhashc.json")
hash = pwhasher.create(u"password")
verified, new_hash = pwhasher.verify_and_upgrade(u"password", hash)
if verified:
Expand Down

0 comments on commit 4266e96

Please sign in to comment.