How to alter the "Request new password" form validation I have adapted the login procedure with hook_form_FORM_ID_alter so that another database is also checked for credentials. Now I need to change the forgot password validation as well. It seems the FORM_ID of this form is user_pass, however, the hooks I define for that do not trigger. I also tried with hook_form_alter to see what form was triggered, but that hook also never fires (while it does for login for example).

Is the "Request new password" some kind of special form? Is it possible to change the validation handler of this form?

I'm using Drupal 7.
Nothing special about this form, you can alter it just like any other:

function MYMODULE_form_user_pass_alter(&amp;$form, &amp;$form_state) {
  $form['#validate'][] = 'MYMODULE_user_pass_validate';
}

function MYMODULE_user_pass_validate(&amp;$form, &amp;$form_state) {
  // Your code here
}


Works perfectly fine.