From 1aa124094086804d60a1990592a3df6cc236ce13 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sun, 17 May 2015 12:21:14 -0400 Subject: add another password --- wedding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wedding.py b/wedding.py index 7b00171..17bff5e 100644 --- a/wedding.py +++ b/wedding.py @@ -128,7 +128,8 @@ def login(): if not c.fetchone(): flash(gettext("Wrong name")) return redirect(url_for('login')) - if request.form['password'] != app.config['PASSWORD']: + if request.form['password'] not in [app.config['PASSWORD'], + app.config['PASSWORD2']]: flash(gettext("Wrong password")) return redirect(url_for('login')) session['user_name'] = request.form['username'] -- cgit v1.2.3-70-g09d2