Fixed a few instances where api settings would go not setup

This commit is contained in:
2010-05-13 10:53:15 +01:00
parent d68a0907c6
commit 75663c308b
2 changed files with 4 additions and 1 deletions

View File

@@ -212,6 +212,7 @@ def service_reset(request, serviceid=0):
passwd = form.cleaned_data['password']
api = acc.service.api_class
api.settings = acc.service.settings
if not api.reset_password(acc.service_uid, passwd):
error = True
return render_to_response('sso/serviceaccount/resetcomplete.html', locals(), context_instance=RequestContext(request))