mirror of
https://github.com/writeas/writefreely
synced 2025-01-22 15:49:52 +01:00
Tweak admin reset confirmation copy
Also updates some whitespace in the JS. Ref T695
This commit is contained in:
parent
422c16f39a
commit
3e8d1014d9
@ -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…
Reference in New Issue
Block a user