Skip to content

Commit

Permalink
set login_result to use id index in create_account
Browse files Browse the repository at this point in the history
  • Loading branch information
GDcheeriosYT committed Jul 25, 2024
1 parent 9fcb716 commit 4d27a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def create_account():
render_template('account/user-profile.html',
account=login_result
))
resp.set_cookie('userID', str(login_result.id))
resp.set_cookie('userID', str(login_result["id"]))
return resp
else:
resp = make_response(
Expand Down

0 comments on commit 4d27a3c

Please sign in to comment.