-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
I ran into a situation today where duplicate user accounts were being created. After some digging around I noticed that if a user typed in a leading or trailing space while typing their username then it would treat these accounts as unique and create a new record in auth_user. This can lead to confusing results for the end user as anything associated with an account they might of had previously looks to them as if it disappeared.
Would you be willing to accept a patch for backends.py[1] with something to the effect of:
username = _verify(ticket, service)
if not username:
return None
username = username.strip()
[1] https://github.com/kstateome/django-cas/blob/develop/cas/backends.py#L231
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels