Tweak admin reset confirmation copy

Also updates some whitespace in the JS.

Ref T695
pull/192/head
Matt Baer 5 years ago
parent 422c16f39a
commit 3e8d1014d9
  1. 6
      templates/user/admin/view-user.tmpl

@ -119,8 +119,10 @@ button[type="submit"].danger {
form = document.getElementById("reset-form");
form.addEventListener('submit', function(e) {
e.preventDefault();
agreed = confirm("Really reset password for {{.User.Username}}?\nYou will have to record and share the new password with them.");
if (agreed === true) { form.submit();}
agreed = confirm("Reset this user's password? This will generate a new temporary password that you'll need to share with them, and invalidate their old one.");
if (agreed === true) {
form.submit();
}
});
</script>
{{template "footer" .}}

Loading…
Cancel
Save