Permalink
Browse files

Changed docs according to Flask documentation.

  • Loading branch information...
1 parent ad44cb9 commit f9041feb43888113bf995f5fe8ebd0800424f24d @alekzvik committed May 14, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 docs/index.rst
  2. +2 −2 flask_bcrypt.py
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 flask_bcrypt import Bcrypt
+ from flask.ext.bcrypt import Bcrypt
app = Flask(__name__)
bcrypt = Bcrypt(app)
@@ -55,10 +55,10 @@ them like so::
API
___
-.. autoclass:: flaskext.bcrypt.Bcrypt
+.. autoclass:: flask.ext.bcrypt.Bcrypt
:members:
-.. autofunction:: flaskext.bcrypt.generate_password_hash
+.. autofunction:: flask.ext.bcrypt.generate_password_hash
-.. autofunction:: flaskext.bcrypt.check_password_hash
+.. autofunction:: flask.ext.bcrypt.check_password_hash
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 flask_bcrypt import generate_password_hash
+ from flask.ext.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 flask_bcrypt import check_password_hash
+ from flask.ext.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 f9041fe

Please sign in to comment.