Skip to content

Commit

Permalink
Merge pull request #245 from ZdruzenieSTROM/Change-email-verification…
Browse files Browse the repository at this point in the history
…-messages

Change of email verification content
  • Loading branch information
kovacspe authored Nov 11, 2023
2 parents 5e1411a + e634913 commit 9e3bb12
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
8 changes: 7 additions & 1 deletion templates/account/email/email_confirmation_message.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{% load registration_extras %}

Pre overenie emailu klikni sem: {{ request.scheme }}://{{ request.get_host }}/{{ request|seminar }}/verify-email/{{ key }}
Ahoj,
už len krok a budeš môcť riešiť jedinečné matematické úlohy.

Pre dokončenie registrácie klikni sem:
{{ request.scheme }}://{{ request|source_host}}/{{ request|seminar }}/verify-email/{{ key }}

Tvoji vedúci Stromu
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{% load registration_extras %}

Pre overenie emailu klikni sem: {{ request.scheme }}://{{ request.get_host }}/{{ request|seminar }}/verify-email/{{ key }}
Ahoj,
už len krok a budeš môcť riešiť jedinečné matematické úlohy.

Pre dokončenie registrácie klikni sem:
{{ request.scheme }}://{{ request|source_host }}/{{ request|seminar }}/verify-email/{{ key }}

Tvoji vedúci Stromu
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Verifikačný email
STROM - verifikácia emailu
2 changes: 1 addition & 1 deletion templates/account/email/email_confirmation_subject.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Verifikačný email
STROM - verifikácia emailu
6 changes: 6 additions & 0 deletions user/templatetags/registration_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

register = template.Library()


@register.filter
def seminar(request: HttpRequest) -> str:
return request.GET['seminar']


@register.filter
def source_host(request: HttpRequest) -> str:
return request.META['HTTP_X_FORWARDED_HOST']

0 comments on commit 9e3bb12

Please sign in to comment.