-- still need to hide errors for hidden fields
errors.append('This account is disabled.')
else:
errors.append('Incorrect username and/or password.')
- else:
if merge:
form = MergeLoginForm(request.GET, request=request)
else:
form = LoginForm(request.GET, request=request)
+ else:
+ form = LoginForm(service)
+
return render_to_response(template_name, {'form': form, 'errors': errors}, context_instance=RequestContext(request))
def socialauth_login(request, template_name='cas/login.html', success_redirect='/account/'):