remove spaces from usename suggestion

This commit is contained in:
Jason Bau
2013-09-10 10:42:19 -07:00
parent 9dac2eff90
commit 7b9c6fbe5f

View File

@@ -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,