Permalink
Browse files

Changed documentation to be consistent with latest changes made

  • Loading branch information...
1 parent 91d50ee commit ad44cb9ddb36658a0abd21f2a32707c656cc1f64 @alekzvik alekzvik committed Apr 7, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 docs/index.rst
  3. +2 −2 flask_bcrypt.py
View
@@ -28,7 +28,7 @@ To use the extension simply import the class wrapper and pass the Flask app
object back to here. Do so like this:
from flask import Flask
- from flaskext.bcrypt import Bcrypt
+ from flask_bcrypt import Bcrypt
app = Flask(__name__)
bcrypt = Bcrypt(app)
View
@@ -42,7 +42,7 @@ To use the extension simply import the class wrapper and pass the Flask app
object back to here. Do so like this::
from flask import Flask
- from flaskext.bcrypt import Bcrypt
+ from flask_bcrypt import Bcrypt
app = Flask(__name__)
bcrypt = Bcrypt(app)
View
@@ -28,7 +28,7 @@ def generate_password_hash(password, rounds=None):
To this this function, simple import it from the module and use it in a
similar fashion as the method would be used. Here is a quick example::
- from flaskext.bcrypt import generate_password_hash
+ from flask_bcrypt import generate_password_hash
pw_hash = generate_password_hash('hunter2', 10)
:param password: The password to be hashed.
@@ -46,7 +46,7 @@ def check_password_hash(pw_hash, password):
To this this function, simple import it from the module and use it in a
similar fashion as the method would be used. Here is a quick example::
- from flaskext.bcrypt import check_password_hash
+ from flask_bcrypt import check_password_hash
check_password_hash(pw_hash, 'hunter2') # returns True
:param pw_hash: The hash to be compared against.

0 comments on commit ad44cb9

Please sign in to comment.