completed authentication system

This commit is contained in:
2022-11-19 15:55:38 -05:00
parent 30493ec187
commit 400c870056
7 changed files with 144 additions and 44 deletions

View File

@@ -0,0 +1,34 @@
{% extends "base.html" %}
{% block content %}
<span><h1>{% block title %} Create Account {% endblock %}</h1></span>
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="notification is-danger">
{{ messages[0] }}. Go to <a href="{{ url_for('login') }}">login page</a>.
</div>
{% endif %}
{% endwith %}
<form method="post">
{{ form.csrf_token }}
<p>
{{ form.userName.label }}
{{ form.userName }}
</p>
<p>
{{ form.password.label }}
{{ form.password }}
</p>
<p>
{{ form.realName.label }}
{{ form.realName }}
</p>
<p>
{{ form.email.label }}
{{ form.email }}
</p>
<p>
<button class="btn btn-primary" type="submit">Submit</button>
</p>
</form>
{% endblock %}