mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-22 07:34:19 +00:00
Fix small bug
where the website would crash if you didn't remember the password
This commit is contained in:
parent
1f7e93699d
commit
f80435e7cf
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue