Small fixes and updates

This commit is contained in:
maximstewart 2020-12-15 18:51:03 -06:00
parent 821eafc27b
commit ac9937d8f6
5 changed files with 6 additions and 12 deletions

View File

@ -10,7 +10,6 @@ from core.utils import MessageHandler # Get simple message processor
msgHandler = MessageHandler()
TITLE = app.config['TITLE']
@app.route('/app-login', methods=['GET', 'POST'])
def app_login():
@ -28,7 +27,7 @@ def app_login():
flash("Username or password incorrect! Please try again...", "danger")
return render_template('pages/login.html', title=TITLE, form=_form)
return render_template('pages/login.html', form = _form)
@app.route('/app-logout')

View File

@ -10,7 +10,7 @@ from core.utils import MessageHandler # Get simple message processor
msgHandler = MessageHandler()
TITLE = app.config['TITLE']
@app.route('/app-register', methods=['GET', 'POST'])
def app_register():
@ -27,5 +27,4 @@ def app_register():
return redirect(url_for("login"))
return render_template('pages/register.html',
title = TITLE,
form = _form)

View File

@ -8,9 +8,6 @@ from flask import request, redirect, flash
from ... import app, oidc
TITLE = app.config['TITLE']
@app.route('/oidc-login', methods=['GET', 'POST'])
@oidc.require_login
def oidc_login():

View File

@ -9,7 +9,7 @@ from ...utils import MessageHandler # Get simple message processor
msgHandler = MessageHandler()
TITLE = app.config['TITLE']
@app.route('/oidc-register', methods=['GET', 'POST'])
def oidc_register():
@ -18,6 +18,7 @@ def oidc_register():
_form = RegisterForm()
if _form.validate_on_submit():
# TODO: Create...
# NOTE: Do a requests api here maybe??
# hashed_password = bcrypt.generate_password_hash(_form.password.data).decode("utf-8")
@ -27,6 +28,4 @@ def oidc_register():
flash("Account created successfully!", "success")
return redirect("/login")
return render_template('pages/register.html',
title = TITLE,
form = _form)
return render_template('pages/register.html', form = _form)

View File

@ -6,7 +6,7 @@
{% block body_content_additional %}
<div class="row">
<div class="col justify-content-center text-center">
<p>Login stub...</p>
<p>About stub...</p>
</div>
</div>
{% endblock body_content_additional %}