Skip to content

Commit

Permalink
checkpoint: Update login email template
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Sep 13, 2023
1 parent e994d42 commit 70f8231
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{% if is_active %}
{% blocktrans %}Login to your account on the {{ org_long_name }} web site by clicking this link or copying and pasting it to your browser:{% endblocktrans %}

[{% if site %}{{ site.root_url }}{% else %}{{ base_url }}{% endif %}{{ login_path }}]({% if site %}{{ site.root_url }}{% else %}{{ base_url }}{% endif %}{{ login_path }})
{% if site %}{{ site.root_url }}{% else %}{{ base_url }}{% endif %}{{ login_path }}

{% blocktrans %}This link will valid for 2 hours and can be used only once.{% endblocktrans %}
{% blocktrans %}This link will valid for {{ timeout_hours }} hours and can be used only once.{% endblocktrans %}

{% else %}
{% blocktrans %}Your account on the {{ org_long_name }} web site is deactivated. Please contact site administrators.{% endblocktrans %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% load i18n heroicons %}

<section>
<section class="prose">
<div>
{% heroicon_outline "document-check" aria_hidden="true" size=64 %}
</div>
<h2 class="text-2xl mt-4">
<h2 class="mt-4">
{% trans "Check your inbox to proceed!" %}
</h2>

Expand Down
2 changes: 1 addition & 1 deletion hypha/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def markdown_to_html(text: str) -> str:
escape=False,
hard_wrap=True,
renderer="html",
plugins=["strikethrough", "footnotes", "table"],
plugins=["strikethrough", "footnotes", "table", "url"],
)
return md(text)
2 changes: 1 addition & 1 deletion hypha/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@

# Number of seconds that password reset and account activation links are valid (default 259200, 3 days).
PASSWORD_RESET_TIMEOUT = env.int("PASSWORD_RESET_TIMEOUT", 259200)
PASSWORDLESS_LOGIN_TIMEOUT = env.int("PASSWORDLESS_LOGIN_TIMEOUT", 7200) # 2 hours
PASSWORDLESS_LOGIN_TIMEOUT = env.int("PASSWORDLESS_LOGIN_TIMEOUT", 3600) # 1 hours

# Seconds to enter password on password page while email change/2FA change (default 120).
PASSWORD_PAGE_TIMEOUT = env.int("PASSWORD_PAGE_TIMEOUT", 120)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ heroicons==2.2.0
htmldocx==0.0.6
lark==1.1.5
mailchimp3==3.0.17
mistune==2.0.4
mistune==3.0.1
more-itertools==9.0.0
phonenumberslite==8.13.4
Pillow==9.4.0
Expand Down

0 comments on commit 70f8231

Please sign in to comment.