From 0fe09a6e53bc83fdc5d8687a94fc914006c9d598 Mon Sep 17 00:00:00 2001 From: Erwin Sterrenburg Date: Sun, 20 Aug 2017 21:30:46 +0200 Subject: [PATCH] Fixed typo --- examples/simple.py | 4 ++-- flask_jwt_extended/jwt_manager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/simple.py b/examples/simple.py index 78ba4f6b..85787cda 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -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 diff --git a/flask_jwt_extended/jwt_manager.py b/flask_jwt_extended/jwt_manager.py index 8702ceed..a3da2154 100644 --- a/flask_jwt_extended/jwt_manager.py +++ b/flask_jwt_extended/jwt_manager.py @@ -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.