1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00

Fix small bug

where the website would crash if you didn't remember the password
This commit is contained in:
Steffo 2017-09-14 15:06:47 +02:00
parent 1f7e93699d
commit f80435e7cf

View file

@ -218,7 +218,7 @@ def page_login():
else: else:
if login(request.form['username'], request.form['password']): if login(request.form['username'], request.form['password']):
session['username'] = request.form['username'] session['username'] = request.form['username']
session.permanent = request.form['remember'] session.permanent = request.form.get('remember')
return redirect(url_for('page_dashboard')) return redirect(url_for('page_dashboard'))
else: else:
return render_template('error.htm', error="Username o password non validi.") return render_template('error.htm', error="Username o password non validi.")