I'm making an ajax module for drupal 6 in regards to user login.
I need to
- disable redirect on the user login form (I know I need to do a form alter on this form: http://api.drupal.org/api/drupal/modules--user--user.module/function/user_login/6 but what and how?)
- get back a json response containing the success/fail and the user's UID.
Any idea how I do this?
Thanks.