diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-05-17 12:21:14 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-05-17 12:21:14 -0400 |
| commit | 1aa124094086804d60a1990592a3df6cc236ce13 (patch) | |
| tree | 33342409db060355c742b93a3b02e39389c78835 /wedding.py | |
| parent | 1060e11bc0227308ed6e8c89397df14c2e4439a8 (diff) | |
| download | wedding-website-1aa124094086804d60a1990592a3df6cc236ce13.tar.gz | |
add another password
Diffstat (limited to 'wedding.py')
| -rw-r--r-- | wedding.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'] |
