magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

Reset Password leads customer being able to log in just once and then has to wait for cutoff #39388

Open jaydainn opened 3 days ago

jaydainn commented 3 days ago

Preconditions and environment

Steps to reproduce

  1. Ask for a reset password link for a customer.
  2. Reset password then login.
  3. The time for created_at in the customer_visitor table and session_cutoff in the customer_entity table is updated with the website's timezone.
  4. Log out right away
  5. When logging back in , created_at is updated with the server time and the login request doesn't go through because of the condition in app/code/Magento/Customer/Model/Session/Validators/CutoffValidator.php
  6. You then have to wait till session_cutoff is lower than created_at to be able to log in.

Expected result

Login should be successful on the first try.

Actual result

Login failed and redirects to the login page with no error message.

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 3 days ago

Hi @jaydainn. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.

m2-assistant[bot] commented 3 days ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down: