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

Facilitate email verification and password reset on the backend #119

Open
HuxleyBerry opened this issue Jan 17, 2025 · 1 comment
Open
Assignees
Labels
backend Task must have a back end issue difficulty::hard This issue is hard priority::low This issue is low priority

Comments

@HuxleyBerry
Copy link
Member

Here's a non-exhaustive list of things to be done:

  • Create a django.contrib.auth.tokens.PasswordResetTokenGenerator instance
  • Modify the user registration view so that users are not marked as active
  • Write a view which takes an email address and sends an email containing a password verification link to that address, provided that the user corresponding to that address exists and isn't already active
  • Write a view which takes a user id and a reset token, checks if that token is valid for the user, and if so marks the user as active.
  • Write a view which takes an email address and sends an email containing a password reset link to that address, provided that the user corresponding to that address exists
  • Write a view which takes a user id, a reset token, and a new password, checks if that token is valid for the user, and if so assigns the user the new password.

See the django docs for information on sending emails: https://docs.djangoproject.com/en/5.1/topics/email/. For the time being, I suggest using the console backend for testing purposes.

@HuxleyBerry HuxleyBerry added backend Task must have a back end issue difficulty::hard This issue is hard priority::low This issue is low priority labels Jan 17, 2025
@SafetyInObscurity SafetyInObscurity self-assigned this Jan 18, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Task must have a back end issue difficulty::hard This issue is hard priority::low This issue is low priority
Projects
None yet
Development

No branches or pull requests

2 participants