mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Added a bit of form validation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user