diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-21 23:31:12 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-03-21 23:31:12 -0400 |
| commit | 5461707167739ddde8f2792d8a12ed1ba0f597db (patch) | |
| tree | bf56c432feccf230590a7ebe3cd3b78cb6dd0613 | |
| parent | 508e68ccfccc606b0ea3f4f68e03cbc2377e9443 (diff) | |
| download | wedding-website-5461707167739ddde8f2792d8a12ed1ba0f597db.tar.gz | |
fix the fixes
| -rw-r--r-- | wedding.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -106,9 +106,9 @@ def login(): if request.method == 'POST': db = get_db() with db: - db.execute("SELECT * from guests where user_name=?", - (request.form['username'],)) - if not db.fetchone(): + c = db.execute("SELECT * from guests where user_name=?", + (request.form['username'],)) + if not c.fetchone(): flash(wn[request.form['language']]) return redirect(url_for('login')) if request.form['password'] != app.config['PASSWORD']: |
