How can I send a password recovery e-mail to a Customer/User in Django?

64 views
Skip to first unread message

João Rodrigues

unread,
Sep 25, 2016, 5:18:14 PM9/25/16
to Django users
I am working on a small online shop with Django 1.9 and I have a Customers page.

Note: This is the back-end site. Only for me...



Clicking on the green lock icon should send a password recovery e-mail to the e-mail address of the Customer of that row.

We assume that I can easily fetch the e-mail address of the targeted Customer, and that there is no need to check if the e-mail address is valid, because it is already in the system.

How could I achieve the action of sending a password recovery e-mail to that user?

Thanks

Gergely Polonkai

unread,
Sep 26, 2016, 1:48:40 AM9/26/16
to Django users

Hello,

the trick is not in the email sending, but in resetting the password.

Assuming you don't use any user managing apps (as you didn't state it), you will have to implement some parts, but the built-in auth module[1] already covers a lot of this.

Best,
Gergely

[1] https://docs.djangoproject.com/en/1.9/topics/auth/default/#using-the-views


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/688c1a12-a7c2-4817-8c26-34ce59ab5c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

João Rodrigues

unread,
Sep 27, 2016, 9:50:23 AM9/27/16
to Django users
Thanks a lot. I solved it. :)

I got some more information in this page:

Reply all
Reply to author
Forward
0 new messages