Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiveknx authored Feb 24, 2022
1 parent 90a2b23 commit c7643f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
)


def challenge_code_handler(username, choice):
def challenge_code_handler(username, choice, challenge_url, session):
# Aqui salva o challenge_url e os headers e os cookies que tão nessa session
return False

@router.post("/login")
Expand Down Expand Up @@ -62,7 +63,9 @@ async def challenge_choice(sessionid: str = Form(...),
""" Challenge code
"""
cl = clients.get(sessionid)
# HERE, we would need to "resume" the previous challenge. How we would do that?

## Aqui você puxa os headers, os cookies e o challenge_url que você salvou na linha 14 e chama o checkpoint_resume
result = cl.resume_checkpoint(code, challenge_url, old_session)
return result


Expand Down

0 comments on commit c7643f1

Please sign in to comment.