Is it just me or the forgot password (checkout/*/user/password) is not working?

Comments

vasike’s picture

Version: 7.x-2.0-rc4 » 7.x-2.x-dev

indeed there is an issue for Commerce Checkout Redirect module
it replaces the submit function

/**
 * Implements hook_form_FORM_ID_alter().
 */
function commerce_checkout_redirect_form_user_pass_alter(&$form, &$form_state) {
  if (arg(0) == 'checkout' && arg(2) == 'user' && arg(3) == 'password') {
    $form['#submit'][0] = 'commerce_checkout_redirect_user_login_submit';
  }
}

this should be

/**
 * Implements hook_form_FORM_ID_alter().
 */
function commerce_checkout_redirect_form_user_pass_alter(&$form, &$form_state) {
  if (arg(0) == 'checkout' && arg(2) == 'user' && arg(3) == 'password') {
    $form['#submit'][] = 'commerce_checkout_redirect_user_login_submit';
  }
}
vasike’s picture

Status: Active » Needs review

here is a gerrit commit that uses an updated patch for the Commerce Checkout Redirect, about user password recovery (#1677106-4: Add user password recovery support.).

https://code.drupalcommerce.org/#/c/571/

akosipax’s picture

Yes, it works. Thanks!

bojanz’s picture

Status: Needs review » Fixed

Merged.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.