Skip to content

Commit

Permalink
attempted to set user url back
Browse files Browse the repository at this point in the history
  • Loading branch information
GDcheeriosYT committed Jul 25, 2024
1 parent e51c0f5 commit 9fcb716
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 @@ -115,7 +115,7 @@ async def login_cookie():
password = request.form.get('pw')
login_result = login(username, password)
if login_result != "incorrect info" and login_result is not None:
resp = make_response(redirect(f'user/{login_result["id"]}'))
resp = make_response(redirect(f'/user/{login_result["id"]}'))
resp.set_cookie('userID', str(login_result["id"]))
return resp
else:
Expand Down

0 comments on commit 9fcb716

Please sign in to comment.