From ec8f9072ae1379018fc975407f5b325c20bd0ad1 Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah <52817156+syedsajjadkazmii@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:43:57 +0500 Subject: [PATCH] fix: Server error on email confirmation view (#13) --- ecommerce/extensions/offer/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecommerce/extensions/offer/views.py b/ecommerce/extensions/offer/views.py index ddeac173370..306d446069c 100644 --- a/ecommerce/extensions/offer/views.py +++ b/ecommerce/extensions/offer/views.py @@ -1,5 +1,6 @@ import logging +from django.contrib.auth.mixins import LoginRequiredMixin from django.http import Http404 from django.shortcuts import get_object_or_404 from django.views.generic import TemplateView @@ -14,7 +15,7 @@ logger = logging.getLogger(__name__) -class EmailConfirmationRequiredView(TemplateView): +class EmailConfirmationRequiredView(LoginRequiredMixin, TemplateView): template_name = 'edx/email_confirmation_required.html' def get_context_data(self, **kwargs):