Skip to content

Commit

Permalink
update response model
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 23, 2025
1 parent c5fb581 commit bf5f8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agixt/endpoints/Auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async def send_mfa_sms(request: Request):
email = data["email"]
token = impersonate_user(email)
auth = MagicalAuth(token=token)
return auth.send_sms_code()
return {"detail": auth.send_sms_code()}


@app.post("/v1/user/mfa/email", response_model=Detail, tags=["Auth"])
Expand All @@ -309,7 +309,7 @@ async def send_mfa_email(request: Request):
email = data["email"]
token = impersonate_user(email)
auth = MagicalAuth(token=token)
return auth.send_email_code()
return {"detail": auth.send_email_code()}


@app.post(
Expand Down

0 comments on commit bf5f8c5

Please sign in to comment.