Commit 18e9b4ce by yushchenko

fixes empty numeric strings in registartion form

parent 7d44a42e
......@@ -724,7 +724,8 @@ def create_account(request, post_override=None):
js['value'] = error_str[a]
js['field'] = a
return HttpResponse(json.dumps(js))
if len(post_vars[a] < 1):
post_vars[a] = '0'
try:
validate_email(post_vars['email'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment