3 ms·
The Django builtin functionality is more secure than that. Do not send passwords in email. You should create a token, and mark the account with it, send the to
by marcosdumay 12y ago
The Django builtin functionality is more secure than that. Do not send passwords in email.
You should create a token, and mark the account with it, send the token to the user, and if the user sends the token back to you (at the URL, normally), you let him replace his password. The password itself is never communicated back to the user.
- agildehaus 12y agoAnd be sure to destroy the token immediately after the user resets, and also after a reasonable time period regardless if it was used (24hrs seems fine to me). Otherwise the email could be found later and used to gain access.
- TomGullen 12y agoJust a point, this is pretty much the same as sending a plain text one use password.
- kremlin 12y agoI wasn't suggesting to do this and I have never done this, just pointing out that it is technically easy. I don't really know why I got a downvote for that