mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-06-02 23:43:12 +00:00
make forms less problematic
This commit is contained in:
parent
f2ee0279f0
commit
b19dedc568
9 changed files with 42 additions and 43 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue