Commit 29bcce70 by Xavier Ordoquy

Merge pull request #1833 from dpanesso/master

Using user.get_username() instead of user.username.
parents 840fe7b0 1ab782a4
......@@ -344,7 +344,7 @@ class OAuth2Authentication(BaseAuthentication):
user = token.user
if not user.is_active:
msg = 'User inactive or deleted: %s' % user.username
msg = 'User inactive or deleted: %s' % user.get_username()
raise exceptions.AuthenticationFailed(msg)
return (user, token)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment