From a00f11c1ff74284693b7619cc78b933a2f3ded86 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 4 Mar 2013 11:17:29 -0500 Subject: [PATCH] Tell user that spaces aren't allowed in usernames (requested by Teppo). --- common/djangoapps/student/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 57b1ddbfd0..6ac57c1182 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -554,7 +554,7 @@ def create_account(request, post_override=None): try: validate_slug(post_vars['username']) except ValidationError: - js['value'] = "Username should only consist of A-Z and 0-9.".format(field=a) + js['value'] = "Username should only consist of A-Z and 0-9, with no spaces.".format(field=a) js['field'] = 'username' return HttpResponse(json.dumps(js))