问题
I already use django-registration : you can register with an email verification, you can reset password with an email confirmation but there is no way to change user's email with an email verification.
Do you know a django application which gives the ability to change user's email address by sending to the new address a verification e-mail ?
回答1:
Please try this app:
http://github.com/jtauber/django-email-confirmation/
回答2:
You can also try this app. (I wrote for the exact purpose)
https://github.com/un33k/django-emailmgr
It works well with django-registration as the email provided during the registration would be the primary email address and already verified.
the user can then add more email addresses and confirm each one. Once a new email is confirmed, then it can be promoted to the primary address. Then the old primary address can be deleted.
This way you ensure that users always have at least one verified email address associated with their profile.
If you want to see a live example, then you can do that on http://outsourcefactor.com by creating an account (django-registration), activating it, login, and look at the email tab under your account settings. Once you are done, you can delete the account.
Hope this helps.
回答3:
You don't usually provide email verification to reset a password, since this is done at the signup stage. Django does however have the ability to send the reset password to the user in an email, after they have requested their password to be reset through a view.
Checkout the documentation here:
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.password_reset
EDIT:
I found and app that is able to reset the email of a user account, it does way more that just that (which may be a drawback) but could be useful:
http://code.google.com/p/django-profile/#Features
来源:https://stackoverflow.com/questions/2296846/django-apps-for-changing-user-email-with-verification