cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.4 customer login fails & customer edit page not responding

Magento 2.4.4 customer login fails & customer edit page not responding

Last week i received an email from one of my customers:

I am unable to login my account is "The account sign-in was incorrect or your account is disabled temporarily."

 

Now after a full weekend searching i can not find a solution.

 

I noticed when i try to update the password for customer:

1. the reset link is send to email (domain.com/customer/account/createPassword/?id=2049&token=YxwGXiwdoNf7hjG359sbt0smKK2ck6Ej

2.copy past the link in the browser redirect to : (domain.com/customer/account/createpassword/)

3.this will give an error:

"email" is required. Enter and try again.
Your password reset link has expired.
 
Also the backend customer edit page is not responding.
Is there someone who knows what to do?
10 REPLIES 10

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hi @Broeders ,

 

Any error in exception.log or system.log while editing customer from back-end?

 

Thanks

Ankit Jasani

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hello @Broeders 

 

You should check the magento exception.So you need to go to class method Magento\Customer\Controller\Account\CreatePassword::execute() and in catch statement log the exception.

 

Thank you

Problem solved? Click Accept as Solution!

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hi Bhanu

 

I am not getting the error in my log - (never have done this) give me a hint?

: added this logger message

        } catch (\Exception $exception) {
            $this->_logger-> critical($message, array $context = array())  //saved in var/log/system.log
            $this->messageManager->addErrorMessage(__('Your password reset link has expired.'));
            /** @var Redirect $resultRedirect */
            $resultRedirect = $this->resultRedirectFactory->create();
            $resultRedirect->setPath('*/*/forgotpassword');

            return $resultRedirect;
        }

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hello @Broeders 

 

Please check under

var/log/system.log
or
var/log/exception.log

 

Problem solved? Click Accept as Solution!

Re: Magento 2.4.4 customer login fails & customer edit page not responding

There is nothing logged into /var/log/...

I see cron:run ect (just the normall loggings)

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hi @Broeders,

Greetings!

I have just gone through all your comments and error. And as per my knowledge is an issue with link expiry right?

Try these steps(if that can help you)

  1. Go to Stores --> Configurations --> Settings --> Customers --> Customer Configuration
  2. Set "Recovery Link Expiration Period (hours) = 2" or leave it as it is per configuration settings on the "Default Config" level
  3. Register customer via example.com/customer/account/create/
  4. Log out
  5. Go to Forgot password via Example.com/customer/account/forgotpassword/
  6. Enter your E-Mail --> Demand Password Reset
  7. Access E-Mail in your e-mail program
  8. Click on "Set a new password" in the mail

You can test this. Also, check in incognito. Maybe the problem can be multiple Magento sites in the same domain for development.

 

Hope this will work for you. 

If not, feel free to contact us. 

 

Solved? Click KUDOS and accept it as a solution to help others. 

ThanksSmiley Happy

 

Re: Magento 2.4.4 customer login fails & customer edit page not responding

I did exacly - (check the admin settings -- were already ok as you mentioned)

 

In admin i made a new customer - this works.

In front i request for a new password by email - email is send.

I press the link and try to set the password:

error message:

"email" is required. Enter and try again.
Your password reset link has expired.
 
I think something is wrong with the cookie settings 
The email from the input setting in the page is not transfered to the cookie.
Therefore i get the error "email" is required. Enter and try again".
 
Also in the backend the customer edit page is not viewable.
I see the waiting signal in the middle from the page turning but the page with the account settings form the customer is not loading.
 
And there are no errors in the /var/log/

 

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Finally after many hours i found:

The PHP user was not correct with the newest 2FA this is very strict.

 

Re: Magento 2.4.4 customer login fails & customer edit page not responding

Hi,

can you explain how you fix it?
My 2FA module is disabled.