Rename cookie header parameter to make it clear it is unused

The parameter is necessary to match the auth handler interface, but is unused inside the method
This commit is contained in:
Joseph Schorr 2017-03-22 22:09:31 -04:00
parent 95e1cf6673
commit 08673a03e2

View file

@ -7,7 +7,7 @@ from auth.validateresult import AuthKind, ValidateResult
logger = logging.getLogger(__name__)
def validate_session_cookie(auth_header=None):
def validate_session_cookie(auth_header_unusued=None):
""" Attempts to load a user from a session cookie. """
if current_user.is_anonymous:
return ValidateResult(AuthKind.cookie, missing=True)