Skip to content

There is no chance to recover password after MAGETWO-92989 change #19190

@plodistov

Description

@plodistov

Preconditions (*)

  1. installed php version 7.1.21
  2. magento 2.2.6

Steps to reproduce

  1. Sign in with any customer, to have a row in table customer_visitor
  2. Sign out
  3. Fill in the forget password form
  4. Open link from the received email for password recovery
  5. After submitting new password form, we're getting next error:

Warning: SessionHandler::destroy(): Parent session handler is not open in .{ROOT}/vendor/magento/framework/Session/SaveHandler.php on line 123

Expected result (*)

  1. To have chance to change the password

Actual result (*)

  1. The problem is with Session

    In the Magento\Customer\Model\AccountManagement::resetPassword()
    in first step called $this->sessionManager->destroy();
    where session is being session_destroy() (see Magento\Framework\Session\SessionManager::destroy())
    And before second step $this->destroyCustomerSessions($customer->getId());
    no one is $this->sessionManager->start(); anymore

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions