From a93ac001207f24c59e66965a603afb0eb6abdbda Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 11 Feb 2022 22:44:47 +0000 Subject: [PATCH] Add more info to username has spaces error message --- apiserver/apiserver/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/serializers.py b/apiserver/apiserver/api/serializers.py index d36bb3b..66bf20c 100644 --- a/apiserver/apiserver/api/serializers.py +++ b/apiserver/apiserver/api/serializers.py @@ -781,7 +781,7 @@ class MyLoginSerializer(LoginSerializer): raise ValidationError(dict(username='*server explodes*')) if ' ' in username: - raise ValidationError(dict(username='Username shouldn\'t have spaces.')) + raise ValidationError(dict(username='Username shouldn\'t have spaces. Try "first.last" or "first.middle.last".')) if 'first.last' in username: raise ValidationError(dict(username='Don\'t literally try "first.last", use your own name.'))