Skip to content

Commit

Permalink
fix: Server error on email confirmation view
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed Dec 2, 2024
1 parent cddf271 commit 7635e82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecommerce/extensions/offer/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging

from django.http import Http404
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404
from django.views.generic import TemplateView
from opaque_keys import InvalidKeyError
Expand All @@ -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):
Expand Down

0 comments on commit 7635e82

Please sign in to comment.