Tweak admin reset confirmation copy

Also updates some whitespace in the JS.

Ref T695
This commit is contained in:
Matt Baer 2019-11-11 18:04:20 +09:00
parent 422c16f39a
commit 3e8d1014d9
1 changed files with 4 additions and 2 deletions

View File

@ -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" .}}