Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def login():
password = params.get('password', None)

if not username:
return jsonify({"msg": "Missing username paramater"}), 400
return jsonify({"msg": "Missing username parameter"}), 400
if not password
return jsonify({"msg": "Missing password paramater"}), 400
return jsonify({"msg": "Missing password parameter"}), 400

if username != 'test' or password != 'test':
return jsonify({"msg": "Bad username or password"}), 401
Expand Down
2 changes: 1 addition & 1 deletion flask_jwt_extended/jwt_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def token_in_blacklist_loader(self, callback):
"""
Sets the callback function for checking if a token has been revoked.

This callback function must take one paramater, which is the full
This callback function must take one parameter, which is the full
decoded token dictionary. This should return True if the token has been
blacklisted (or is otherwise considered revoked, or an invalid token),
False otherwise.
Expand Down