Skip to content

Commit

Permalink
added username info to sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexh-4 committed Sep 13, 2024
1 parent e3ae01b commit 22e2ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def login_post():
user = repo.get_user_details(username)
# Set the user ID in session
session['user_id'] = user.id
session['username'] = user.username

# return render_template('spaces.html')
return redirect(location="/spaces")
Expand Down

0 comments on commit 22e2ea6

Please sign in to comment.