Skip to content

Commit

Permalink
Delete signup token on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Aug 12, 2024
1 parent 57f03e4 commit dc6784b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions store/app/routers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ async def register_user(
# Create the user
user = await user_crud._create_user_from_email(email=signup_token.email, password=data.password)

# Delete the signup token
email_signup_crud.delete_email_signup_token(data.signup_token_id)

return SinglePublicUserInfoResponseItem(id=user.id, email=user.email)


Expand Down

0 comments on commit dc6784b

Please sign in to comment.