Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve 2fa and captcha login sections
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
e0c1dea
commit 2c22ff1
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<form method="post" class="disableAjax"> | ||
{{ get_hidden_inputs() }} | ||
{{ form|raw }} | ||
{% if show_submit %} | ||
{{ get_hidden_inputs() }} | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
{{ form|raw }} | ||
</div> | ||
<div class="card-footer"> | ||
{% if show_submit %} | ||
<input class="btn btn-primary" type="submit" value="{% trans "Verify" %}"> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<p> | ||
<label>{% trans "Authentication code:" %} <input type="text" name="2fa_code" autocomplete="off" autofocus></label> | ||
</p> | ||
<p>{% trans "Open the two-factor authentication app on your device to view your authentication code and verify your identity." %}</p> | ||
<div class="mb-3"> | ||
<label class="form-label" for="2faCodeInput">{% trans "Authentication code:" %}</label> | ||
<input class="form-control" id="2faCodeInput" type="text" name="2fa_code" autocomplete="off" autofocus> | ||
</div> | ||
{% trans 'Open the two-factor authentication app on your device to view your authentication code and verify your identity.' %} |