Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
update(version) bump version to v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Sep 24, 2016
1 parent 1c83952 commit fa99e6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_auth0/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '0.0.2'
__version__ = '0.0.3'
4 changes: 3 additions & 1 deletion django_auth0/auth_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.contrib.auth import get_user_model
from django.utils.translation import ugettext as _


UserModel = get_user_model()

# user profile keys that are always present as specified by
Expand Down Expand Up @@ -39,7 +40,8 @@ def authenticate(self, **kwargs):
if user_id is None:
raise ValueError(_('user_id can\'t be blank!'))

# The format of user_id is {identity provider id}|{unique id in the provider}
# The format of user_id is
# {identity provider id}|{unique id in the provider}
# The pipe character is invalid for the django username field
# The solution is to replace the pipe with a dash
username = user_id.replace('|', '-')
Expand Down

0 comments on commit fa99e6f

Please sign in to comment.