Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Email Auth #664

Merged
merged 10 commits into from
Dec 27, 2024
Merged

Remove Email Auth #664

merged 10 commits into from
Dec 27, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

This PR removes all /auth/email endpoints, associated CRUD models, and references.

Changes:

  • Remove email router and CRUD operations
  • Remove EmailSignUpToken model
  • Remove email-specific utility functions
  • Update imports and references

This change removes the email-based authentication system as we no longer allow email authentication.

Link to Devin run: https://app.devin.ai/sessions/e211620112274ec7a462a4e555daeb37

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring


await send_email(subject="Signup", body=body, to=email)


async def send_reset_password_email(email: str, token: str) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also be able to remove this function, as well as the change email function below - basically, any functionality related to managing the user's email and password

www/app/utils/email.py Show resolved Hide resolved
@@ -95,7 +94,6 @@ async def delete_user_endpoint(
crud: Annotated[Crud, Depends(Crud.get)],
) -> bool:
await crud.delete_user(user.id)
await send_delete_email(user.email)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, actually this is important - we should keep this part

www/app/utils/email.py Show resolved Hide resolved
mock_send_email.assert_called_with(
subject="Account Deleted - K-Scale Labs",
body=mock_send_email.call_args[1]["body"], # Don't compare exact HTML
to="[email protected]", # This is the mock email from conftest.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was changed to [email protected]

@codekansas codekansas changed the base branch from master to staging December 26, 2024 18:21
devin-ai-integration bot and others added 7 commits December 26, 2024 14:07
- Remove email router and CRUD operations
- Remove EmailSignUpToken model
- Remove email-specific utility functions
- Update imports and references

This change removes the email-based authentication system as we no longer allow email authentication.

Co-Authored-By: Benjamin Bolte <[email protected]>
…il, send_reset_password_email)

Co-Authored-By: Benjamin Bolte <[email protected]>
@codekansas codekansas force-pushed the devin/1697048851-remove-email-auth branch from f696de0 to a2a6633 Compare December 26, 2024 19:07
@codekansas codekansas enabled auto-merge (squash) December 27, 2024 01:29
@codekansas codekansas disabled auto-merge December 27, 2024 01:33
@codekansas codekansas merged commit 0b09dbf into staging Dec 27, 2024
@codekansas codekansas deleted the devin/1697048851-remove-email-auth branch December 27, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant