Small fixes and updates
This commit is contained in:
parent
821eafc27b
commit
ac9937d8f6
|
@ -10,7 +10,6 @@ from core.utils import MessageHandler # Get simple message processor
|
||||||
|
|
||||||
|
|
||||||
msgHandler = MessageHandler()
|
msgHandler = MessageHandler()
|
||||||
TITLE = app.config['TITLE']
|
|
||||||
|
|
||||||
@app.route('/app-login', methods=['GET', 'POST'])
|
@app.route('/app-login', methods=['GET', 'POST'])
|
||||||
def app_login():
|
def app_login():
|
||||||
|
@ -28,7 +27,7 @@ def app_login():
|
||||||
|
|
||||||
flash("Username or password incorrect! Please try again...", "danger")
|
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')
|
@app.route('/app-logout')
|
||||||
|
|
|
@ -10,7 +10,7 @@ from core.utils import MessageHandler # Get simple message processor
|
||||||
|
|
||||||
|
|
||||||
msgHandler = MessageHandler()
|
msgHandler = MessageHandler()
|
||||||
TITLE = app.config['TITLE']
|
|
||||||
|
|
||||||
@app.route('/app-register', methods=['GET', 'POST'])
|
@app.route('/app-register', methods=['GET', 'POST'])
|
||||||
def app_register():
|
def app_register():
|
||||||
|
@ -27,5 +27,4 @@ def app_register():
|
||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
return render_template('pages/register.html',
|
return render_template('pages/register.html',
|
||||||
title = TITLE,
|
|
||||||
form = _form)
|
form = _form)
|
||||||
|
|
|
@ -8,9 +8,6 @@ from flask import request, redirect, flash
|
||||||
from ... import app, oidc
|
from ... import app, oidc
|
||||||
|
|
||||||
|
|
||||||
TITLE = app.config['TITLE']
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/oidc-login', methods=['GET', 'POST'])
|
@app.route('/oidc-login', methods=['GET', 'POST'])
|
||||||
@oidc.require_login
|
@oidc.require_login
|
||||||
def oidc_login():
|
def oidc_login():
|
||||||
|
|
|
@ -9,7 +9,7 @@ from ...utils import MessageHandler # Get simple message processor
|
||||||
|
|
||||||
|
|
||||||
msgHandler = MessageHandler()
|
msgHandler = MessageHandler()
|
||||||
TITLE = app.config['TITLE']
|
|
||||||
|
|
||||||
@app.route('/oidc-register', methods=['GET', 'POST'])
|
@app.route('/oidc-register', methods=['GET', 'POST'])
|
||||||
def oidc_register():
|
def oidc_register():
|
||||||
|
@ -18,6 +18,7 @@ def oidc_register():
|
||||||
|
|
||||||
_form = RegisterForm()
|
_form = RegisterForm()
|
||||||
if _form.validate_on_submit():
|
if _form.validate_on_submit():
|
||||||
|
# TODO: Create...
|
||||||
# NOTE: Do a requests api here maybe??
|
# NOTE: Do a requests api here maybe??
|
||||||
|
|
||||||
# hashed_password = bcrypt.generate_password_hash(_form.password.data).decode("utf-8")
|
# hashed_password = bcrypt.generate_password_hash(_form.password.data).decode("utf-8")
|
||||||
|
@ -27,6 +28,4 @@ def oidc_register():
|
||||||
flash("Account created successfully!", "success")
|
flash("Account created successfully!", "success")
|
||||||
return redirect("/login")
|
return redirect("/login")
|
||||||
|
|
||||||
return render_template('pages/register.html',
|
return render_template('pages/register.html', form = _form)
|
||||||
title = TITLE,
|
|
||||||
form = _form)
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% block body_content_additional %}
|
{% block body_content_additional %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col justify-content-center text-center">
|
<div class="col justify-content-center text-center">
|
||||||
<p>Login stub...</p>
|
<p>About stub...</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock body_content_additional %}
|
{% endblock body_content_additional %}
|
||||||
|
|
Loading…
Reference in New Issue