Skip to content
Snippets Groups Projects
Commit 7b9c6fbe authored by Jason Bau's avatar Jason Bau
Browse files

remove spaces from usename suggestion

parent 9dac2eff
No related merge requests found
......@@ -255,7 +255,7 @@ def _signup(request, eamap):
# default conjoin name, no spaces, flattened to ascii b/c django can't handle unicode usernames, sadly
# but this only affects username, not fullname
username = _flatten_to_ascii(eamap.external_name)
username = re.sub(r'\s', '', _flatten_to_ascii(eamap.external_name), flags=re.UNICODE)
context = {'has_extauth_info': True,
'show_signup_immediately': True,
......
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