cgi/vaddalias.cc
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
equal deleted inserted replaced
1:30113bfbe723 2:b3afb9f1e801
    31     error("The passwords you entered do not match");
    31     error("The passwords you entered do not match");
    32   else {
    32   else {
    33     mystring errmsg;
    33     mystring errmsg;
    34     unsigned dests = destination.count(',') + 1;
    34     unsigned dests = destination.count(',') + 1;
    35 
    35 
    36     server_call call("adduser2", dests + 5);
    36     server_call call("adduser3", dests + 6);
    37     call.operand(0, vdomain);
    37     call.operand(0, vdomain);
    38     call.operand(1, username);
    38     call.operand(1, username);
    39     call.operand(2, password);
    39     call.operand(2, password);
    40     call.operand(3, newpass1);
    40     call.operand(3, newpass1);
    41     call.operand(4, "");
    41     call.operand(4, "");
       
    42     call.operand(5, "");
    42     
    43     
    43     unsigned i = 5;
    44     unsigned i = 6;
    44     for(mystring_iter iter(destination, ','); iter; ++iter, ++i)
    45     for(mystring_iter iter(destination, ','); iter; ++iter, ++i)
    45       call.operand(i, *iter);
    46       call.operand(i, *iter);
    46 
    47 
    47     response resp = call.call();
    48     response resp = call.call();
    48     if(!resp)
    49     if(!resp)