Re-implement password reset token sending natively
authorMagnus Hagander <magnus@hagander.net>
Fri, 23 Mar 2018 12:18:55 +0000 (13:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 23 Mar 2018 12:21:16 +0000 (13:21 +0100)
commitd033d5f036cae0b6683a17180c768cf79476c0fa
treeddafdc28730fe378165406232b503d5ef4d1641a
parentcbf8b7c3e7154712537dadc50281abdd861a77c3
Re-implement password reset token sending natively

The django version of password reset is broken in multiple way. What's
hurting us in particular is it cannot reset the password of a user where
the old password was generated by a deprecated hasher. Which, of course,
is exactly one of the cases where being able to reset the password is
important.

We still use the same infrastructure, and we use the actual django code
for *changing* the password -- this just replaces the token sender with
something that's a lot simpler and less broken.
pgweb/account/forms.py
pgweb/account/views.py