Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 66cc4ed

Browse files
committed
Adjust confirmation language
1 parent da3baa0 commit 66cc4ed

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

templates/components/snackbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
>
99
<small>
1010
<strong>Email Unconfirmed</strong><br>
11-
<span>To have the confirmation email resent please <a href="{{ url_for('auth.confirm') }}">click here</a>.</span>
11+
<span>To confirm your email address please <a href="{{ url_for('auth.confirm', flow='init') }}">click here</a>.</span>
1212
</small>
1313
<button type="button" class="btn-close" @click="localStorage.setItem('remind_email_verify', window.init.userId); $el.parentElement.style.display = 'none';" aria-label="Close"></button>
1414
</div>

templates/confirm.html

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,40 @@ <h1>
1414
<div class="col-md-10 col-lg-8 col-xl-6 offset-md-1 offset-lg-2 offset-xl-3">
1515
{% include "components/errors.html" %}
1616

17-
<h5 class="text-center">
18-
{% trans %}We've sent a confirmation email to your email address.{% endtrans %}
19-
</h5>
20-
21-
<br>
22-
23-
<h5 class="text-center">
24-
{% trans %}Please click the link in that email to confirm your account.{% endtrans %}
25-
</h5>
26-
27-
<br>
28-
29-
<h5 class="text-center">
30-
{% trans %}If the email doesn’t arrive, check your spam folder or contact an administrator to manually verify your account.{% endtrans %}
31-
</h5>
17+
{% if request.args.get('flow') == "init" %}
18+
<h5 class="text-center">
19+
{% trans %}To send a confirmation email to your email address, please click the button below.{% endtrans %}
20+
</h5>
21+
<br>
22+
<h5 class="text-center">
23+
{% trans %}Please click the link in that email to confirm your account.{% endtrans %}
24+
</h5>
25+
<h5 class="text-center">
26+
{% trans %}If the email doesn’t arrive, check your spam folder or contact an administrator to manually verify your account.{% endtrans %}
27+
</h5>
28+
{% else%}
29+
<h5 class="text-center">
30+
{% trans %}We've sent a confirmation email to your email address.{% endtrans %}
31+
</h5>
32+
<br>
33+
<h5 class="text-center">
34+
{% trans %}Please click the link in that email to confirm your account.{% endtrans %}
35+
</h5>
36+
<h5 class="text-center">
37+
{% trans %}If the email doesn’t arrive, check your spam folder or contact an administrator to manually verify your account.{% endtrans %}
38+
</h5>
39+
{% endif %}
3240

3341
<hr>
3442

3543
{% with form = Forms.auth.ConfirmForm() %}
3644
<form method="POST" action="{{ url_for('auth.confirm') }}">
3745
<div class="row">
3846
<div class="mb-3 col-md-6">
39-
{{ form.submit(class="btn btn-primary w-100") }}
47+
{{ form.submit(class="btn btn-primary w-100 p-2") }}
4048
</div>
4149
<div class="mb-3 col-md-6">
42-
<a href="{{ url_for('views.settings') }}" class="btn btn-secondary w-100">
50+
<a href="{{ url_for('views.settings') }}" class="btn btn-secondary w-100 p-2">
4351
{% trans %}Change Email Address{% endtrans %}
4452
</a>
4553
</div>

0 commit comments

Comments
 (0)