Select the proper web theme display mode based on the user authentication status

This commit is contained in:
Roberto Rosario
2012-01-08 04:42:01 -04:00
parent 9d73c10b7b
commit 467be05baa

View File

@@ -193,8 +193,13 @@ def login_view(request):
if LOGIN_METHOD == 'email':
kwargs['authentication_form'] = EmailAuthenticationForm
if not request.user.is_authenticated():
context = {'web_theme_view_type': 'plain'}
else:
context = {}
return login(request, **kwargs)
return login(request, extra_context=context, **kwargs)
def changelog_view(request):