Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
QA2A authored Aug 12, 2024
1 parent 97cf030 commit d2bdb9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,8 @@ def resume_view(request, slug):
if is_slug_valid:
# Retrieve the profile with the matching resume_key
try:
if not request.GET.get("e"):
raise Http404
profile = Profile.objects.get(resume_key=slug)
is_email_valid = re.match(r"[^@]+@[^@]+\.[^@]+", request.GET.get("e"))
if is_email_valid:
Expand Down

0 comments on commit d2bdb9f

Please sign in to comment.