Login funcionando
This commit is contained in:
@@ -3,15 +3,26 @@
|
||||
{% block title %}Início{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>Menu do Sistema</h2>
|
||||
<div class="list-group">
|
||||
{% for url, endpoint in links %}
|
||||
<a href="{{ url }}" class="list-group-item list-group-item-action">
|
||||
{{ endpoint|replace('_', ' ')|title }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 offset-md-2">
|
||||
<h2 class="mb-4">Menu do Sistema</h2>
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
{% for category, message in messages %}
|
||||
<div class="alert alert-{{ category }}">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<div class="list-group">
|
||||
{% for url, nome in links %}
|
||||
<a href="{{ url }}" class="list-group-item list-group-item-action">
|
||||
{{ nome }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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