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.

-
- - + + +