From 1eab1e9f102aeb3db620fbcc3537a10a0077aaba Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 23 Sep 2022 15:14:24 -0400 Subject: [PATCH] Use unique login username id. --- undercover/routes.py | 2 +- undercover/templates/writing.jinja2 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/undercover/routes.py b/undercover/routes.py index d32801e..5c81964 100644 --- a/undercover/routes.py +++ b/undercover/routes.py @@ -65,7 +65,7 @@ class CLForm(Form): @writing_blueprint.route('/login', methods=['POST', 'GET']) def login(): if request.method == 'POST': - username = request.form['username'] + username = request.form['login'] if db.login(username, request.form['password']): session['username'] = username return redirect('/') diff --git a/undercover/templates/writing.jinja2 b/undercover/templates/writing.jinja2 index f8204e0..8858aaa 100644 --- a/undercover/templates/writing.jinja2 +++ b/undercover/templates/writing.jinja2 @@ -51,9 +51,9 @@ {% else %}

You are here as a guest.

-
- - + + +