Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions taskapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def api_completed_tasks(username):
'master' : user_data.master.completed_tasks,
'passive' : user_data.passive.completed_tasks,
'pets' : user_data.pets.completed_tasks,
'extra' : user_data.extra.completed_tasks
'extra' : user_data.extra.completed_tasks
}})

def token_required(f):
Expand Down Expand Up @@ -371,6 +371,7 @@ def login():
if username_found:
passwordcheck = username_found['hashed_password']
if bcrypt.checkpw(attempted_password.encode('utf-8'), passwordcheck):
session.permanent = True
session['logged_in'] = True
session['username'] = request.form['username']
return redirect(url_for('dashboard'))
Expand Down Expand Up @@ -1111,4 +1112,4 @@ def change_official_status():
if (isProd):
app.run(host='0.0.0.0')
else:
app.run(host="0.0.0.0", port=5001)
app.run(host="0.0.0.0", port=5001)