make forms less problematic

This commit is contained in:
user 2023-06-22 11:54:15 +00:00
parent f2ee0279f0
commit b19dedc568
9 changed files with 42 additions and 43 deletions

View file

@ -28,13 +28,13 @@
</span>
<span class="text-input">
<label for="register-email">Email</label>
<input type="text" name="email" id="register-email" required>
<label for="register-password">Password</label>
<input type="password" name="password" id="register-password" minlength="8" required>
</span>
<span class="text-input">
<label for="register-password">Password</label>
<input type="password" name="password" id="register-password" required>
<label for="register-confirm">Confirm</label>
<input type="password" name="confirm" id="register-confirm" minlength="8" required>
</span>
<button type="submit" class="button primary">Register</button>

View file

@ -50,7 +50,10 @@
<span class="spacer"></span>
{% if current_user.is_authenticated %}
<a href="{{ url_for('views.settings') }}" class="button primary">{{ current_user.username }}</a>
<a href="{{ url_for('views.settings') }}" class="button primary">
{{ current_user.username }}
{% if not current_user.email %}<i class="ph ph-warning"></i>{% endif %}
</a>
{% else %}
<a href="{{ url_for('auth.auth') }}" class="button primary"><i class="ph ph-user-circle"></i></a>
{% endif %}

View file

@ -1,5 +1,12 @@
{% extends "base.html" %}
{% block content %}
{% if not current_user.email %}
<div class="block secondary">
<h2>No Email set</h2>
<p>If you forget your password, you will not be able to recover your account.</p>
</div>
{% endif %}
<div class="block">
<h2>Hello, {{ current_user.username }}!</h2>
<p>Sample text</p>