From e62180a1c48123e53b93aba8e30bebc7521c9941 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 11 Mar 2010 19:12:07 +0000 Subject: [PATCH] Fixed field validation --- sso/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sso/forms.py b/sso/forms.py index f024ec1..fcadeeb 100644 --- a/sso/forms.py +++ b/sso/forms.py @@ -36,6 +36,8 @@ class ServiceUsernameField(forms.CharField): if not re.match("^[A-Za-z0-9_-]*$", field): raise forms.ValidationError("Invalid character in username, use letters and numbers only") + return field + def UserServiceAccountForm(user): """ Generate a Service Account form based on the user's permissions """