$("<p>Set a new password for <b>"+email+"</b>?</p> <p><label for='users_set_password_pw' style='display: block; font-weight: normal'>New Password:</label><input type='password' id='users_set_password_pw'></p><p><small>Passwords must be at least four characters and may not contain spaces.</small></p>"),
"Set Password",
function(){
api(
"/mail/users/password",
"POST",
{
email:email,
password:$('#users_set_password_pw').val()
},
function(r){
// Responses are multiple lines of pre-formatted text.
$("<p>Are you sure you want to archive "+email+"?</p> <p>The user's mailboxes will not be deleted (you can do that later), but the user will no longer be able to log into any services on this machine.</p>"),
$("<p>Are you sure you want to archive <b>"+email+"</b>?</p> <p>The user's mailboxes will not be deleted (you can do that later), but the user will no longer be able to log into any services on this machine.</p>"),
"Archive",
"Archive",
function(){
function(){
api(
api(
...
@@ -178,7 +209,7 @@ function mod_priv(elem, add_remove) {
...
@@ -178,7 +209,7 @@ function mod_priv(elem, add_remove) {