views:

78

answers:

0

Howdy.

I have a client who's webpage I'm building, wants a page where all users are listed with a function to send the users password to the users email for each user listed.

I tried doing this by using a jquery post:

$.post("/user/password", {name:"user.email@domain,com", form_build_id:"form-XXX", op:'', form_id:"user_pass"}, function(data){if (data) console.log(data);});

I tried posting both without form_build_id and later with a id I took from another browser window after I visited the /used/password page.

All im getting in my console is a POST 403 error. What am I doing wrong?