Skip to content

Commit

Permalink
fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Mar 16, 2014
1 parent f1de169 commit 051195d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Basic authentication example
@auth.get_password
def get_pw(username):
if username in users:
return users[username]
return users.get(username)
return None

@app.route('/')
Expand Down Expand Up @@ -51,7 +51,7 @@ Digest authentication example
@auth.get_password
def get_pw(username):
if username in users:
return users[username]
return users.get(username)
return None
@app.route('/')
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The following example application uses HTTP Basic authentication to protect rout
@auth.get_password
def get_pw(username):
if username in users:
return users[username]
return users.get(username)
return None
@app.route('/')
Expand Down Expand Up @@ -81,7 +81,7 @@ The following example is similar to the previous one, but HTTP Digest authentica
@auth.get_password
def get_pw(username):
if username in users:
return users[username]
return users.get(username)
return None
@app.route('/')
Expand Down

0 comments on commit 051195d

Please sign in to comment.