Login funcionando
This commit is contained in:
@@ -14,7 +14,13 @@
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
{% for category, message in messages %}
|
||||
<div class="alert alert-{{ category }}">{{ message }}</div>
|
||||
<div class="alert alert-{{ category }}">
|
||||
{{ message }}
|
||||
{% if category == 'danger' %}
|
||||
<br>
|
||||
<small>Se o problema persistir, contate o administrador.</small>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
@@ -22,7 +28,8 @@
|
||||
<form method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Usuário</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
<input type="text" class="form-control" id="username" name="username" required
|
||||
value="{{ request.form.username }}">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Senha</label>
|
||||
@@ -30,7 +37,8 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="otp" class="form-label">Código OTP</label>
|
||||
<input type="text" class="form-control" id="otp" name="otp" required>
|
||||
<input type="text" class="form-control" id="otp" name="otp" required
|
||||
pattern="[0-9]{6}" title="Digite o código de 6 dígitos">
|
||||
<small class="form-text text-muted">Digite o código de 6 dígitos do seu aplicativo autenticador</small>
|
||||
</div>
|
||||
<div class="d-grid">
|
||||
|
||||
Reference in New Issue
Block a user