Fix: password reset from template rendering
authorYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 5 May 2014 10:09:14 +0000 (12:09 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 5 May 2014 10:09:14 +0000 (12:09 +0200)
portal/django_passresetview.py

index a0018b0..6997008 100644 (file)
@@ -129,9 +129,12 @@ def password_reset(request, is_admin_site=False,
                     
             if flag == 0:
                 messages.error(request, 'Sorry, this email is not registered.')
-                return render(request, themeview.theme, {
+                context = {
                     'form': form,
-                    })
+                    'theme': themeview.theme
+                }   
+                return TemplateResponse(request, themeview.template, context,current_app=current_app)
+
             ### end of email check in manifold  ### 
 
             opts = {