Add admin function to initiate user password reset
authorMagnus Hagander <magnus@hagander.net>
Fri, 18 Sep 2020 07:10:51 +0000 (09:10 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 18 Sep 2020 07:14:21 +0000 (09:14 +0200)
commiteec44cb08e1dcfa116718b03aa59a5ec85e77a8f
tree4f69c4793cfd36bc2d49455edf56358fc58f960d
parent7b69185ad26cb4404487086a785d88075b1bf742
Add admin function to initiate user password reset

This will trigger the same reset-your-password email as a user initiated
one, but it'll cut out one step and be a bit more user friendly...

Also, if this is done with an OAuth connected account, it will be
converted into a regular one (something we don't allow the end user to
do, for support reasons)

This also adds an entry to the user editor in the admin view that shows
if the user *is* an oauth user or not, or if they might have an old
"unmigrated" password.
pgweb/account/admin.py
pgweb/core/forms.py
pgweb/core/views.py
pgweb/urls.py
pgweb/util/templates/forms/widgets/community_auth_password_info.html [new file with mode: 0644]
templates/core/admin_reset_password.html [new file with mode: 0644]