Added a bit of form validation

This commit is contained in:
2010-02-27 17:38:12 +00:00
committed by dreddit
parent 59ec92b2d7
commit ac2a253d9f
2 changed files with 15 additions and 6 deletions

View File

@@ -96,7 +96,6 @@ def service_add(request):
acc.password = form.cleaned_data['password']
acc.save()
return HttpResponseRedirect(reverse('sso.views.profile')) # Redirect after POST
else:
form = ServiceAccountForm() # An unbound form