summaryrefslogtreecommitdiff
path: root/pgweb/util
diff options
context:
space:
mode:
authorMagnus Hagander2020-09-18 07:10:51 +0000
committerMagnus Hagander2020-09-18 07:14:21 +0000
commiteec44cb08e1dcfa116718b03aa59a5ec85e77a8f (patch)
tree4f69c4793cfd36bc2d49455edf56358fc58f960d /pgweb/util
parent7b69185ad26cb4404487086a785d88075b1bf742 (diff)
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.
Diffstat (limited to 'pgweb/util')
-rw-r--r--pgweb/util/templates/forms/widgets/community_auth_password_info.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/pgweb/util/templates/forms/widgets/community_auth_password_info.html b/pgweb/util/templates/forms/widgets/community_auth_password_info.html
new file mode 100644
index 00000000..c297fad1
--- /dev/null
+++ b/pgweb/util/templates/forms/widgets/community_auth_password_info.html
@@ -0,0 +1,9 @@
+<table>
+ <tr>
+ <th>Type:</th>
+ <td>{{type}}</td>
+ </tr>
+ <tr>
+ <td colspan="2"><a href="resetpassword/" class="button">Reset password</a></td>
+ </trf>
+</table>