-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove Email Auth #664
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
www/app/utils/email.py
Outdated
|
||
await send_email(subject="Signup", body=body, to=email) | ||
|
||
|
||
async def send_reset_password_email(email: str, token: str) -> None: |
There was a problem hiding this comment.
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/routers/users.py
Outdated
@@ -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) |
There was a problem hiding this comment.
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
tests/test_users.py
Outdated
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 |
There was a problem hiding this comment.
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]
- 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]>
Co-Authored-By: Benjamin Bolte <[email protected]>
…fication with tests Co-Authored-By: Benjamin Bolte <[email protected]>
Co-Authored-By: Benjamin Bolte <[email protected]>
Co-Authored-By: Benjamin Bolte <[email protected]>
f696de0
to
a2a6633
Compare
This PR removes all /auth/email endpoints, associated CRUD models, and references.
Changes:
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