Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiveknx authored Mar 8, 2022
1 parent 7e14990 commit 9e97431
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ def handle_exception(client, e):
clients = ClientStorage()
cl = clients.client()

# Mock an session ID
sessionid = user_id + ":challenge_required"
cl.sessionid = sessionid

# aqui ele vai salvar no tinydb
clients.set_custom(cl)
clients.set_custom(user_id, settings)

return True

Expand Down

0 comments on commit 9e97431

Please sign in to comment.