X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fdjango_passresetview.py;h=6997008a7ce590446d6177f812042ce7b045b7f9;hb=a0187010efacb05d0e2203e6d002b8acf302147b;hp=7d7f52e9d8ff488908787b0ff3b43570fcb0f1ca;hpb=9d8456518b964d5c7fe681f217bb98ea9a396b90;p=unfold.git diff --git a/portal/django_passresetview.py b/portal/django_passresetview.py index 7d7f52e9..6997008a 100644 --- a/portal/django_passresetview.py +++ b/portal/django_passresetview.py @@ -87,7 +87,7 @@ from portal.actions import manifold_update_user from portal.forms import PassResetForm from portal.actions import manifold_update_user -from theme import ThemeView +from myslice.theme import ThemeView # 4 views for password reset: # - password_reset sends the mail @@ -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 = {