Skip to content

Commit

Permalink
Documentation fix, validate_token() -> verify_token()
Browse files Browse the repository at this point in the history
Fixed an code example in the token authentication documentation
where the example showes usage of a validate_token() method, which as
far as I can tell does not exist. I think the the code example should
be using the verify_token() method instead.
  • Loading branch information
karih committed Mar 8, 2016
1 parent f8c81cf commit f4b41d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ The following example application uses a custom HTTP authentication scheme to pr
"secret-token-2": "susan"
}

@auth.validate_token
def validate_token(token):
@auth.verify_token
def verify_token(token):
if token in tokens:
g.current_user = tokens[token]
return True
Expand Down

0 comments on commit f4b41d7

Please sign in to comment.