##// END OF EJS Templates
email: add whitespace stripping during registration of users on email addresses.
ergo -
r2385:2808e7be default
parent child Browse files
Show More
@@ -228,7 +228,10 b' def RegisterForm(localizer, edit=False, '
228 active = v.StringBoolean(if_missing=False)
228 active = v.StringBoolean(if_missing=False)
229 firstname = v.UnicodeString(strip=True, min=1, not_empty=False)
229 firstname = v.UnicodeString(strip=True, min=1, not_empty=False)
230 lastname = v.UnicodeString(strip=True, min=1, not_empty=False)
230 lastname = v.UnicodeString(strip=True, min=1, not_empty=False)
231 email = All(v.Email(not_empty=True), v.UniqSystemEmail(localizer, old_data))
231 email = All(
232 v.Email(not_empty=True),
233 v.UniqSystemEmail(localizer, old_data),
234 v.UnicodeString(strip=True, min=3))
232
235
233 chained_validators = [v.ValidPasswordsMatch(localizer)]
236 chained_validators = [v.ValidPasswordsMatch(localizer)]
234 return _RegisterForm
237 return _RegisterForm
General Comments 0
You need to be logged in to leave comments. Login now