Skip to content

Commit 8a62883

Browse files
authored
Logs Out
1 parent 60468fe commit 8a62883

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ async def delete_account(
7777
# Mark the user as deleted
7878
current_user.deleted = True
7979
session.commit()
80+
#Logs Out
81+
router.get("/logout", response_class=RedirectResponse)
8082
# Deletes user
8183
session.delete(current_user)
8284
return RedirectResponse(url="/", status_code=303)

0 commit comments

Comments
 (0)