Fix log level on expired OAuth log
This commit is contained in:
parent
b54ebacdfb
commit
1ba3c24fe5
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def validate_oauth_token(token):
|
||||||
error_message='OAuth access token could not be validated')
|
error_message='OAuth access token could not be validated')
|
||||||
|
|
||||||
if validated.expires_at <= datetime.utcnow():
|
if validated.expires_at <= datetime.utcnow():
|
||||||
logger.info('OAuth access with an expired token: %s', token)
|
logger.warning('OAuth access with an expired token: %s', token)
|
||||||
return ValidateResult(AuthKind.oauth, error_message='OAuth access token has expired')
|
return ValidateResult(AuthKind.oauth, error_message='OAuth access token has expired')
|
||||||
|
|
||||||
# Don't allow disabled users to login.
|
# Don't allow disabled users to login.
|
||||||
|
|
Reference in a new issue