I'm developing a website that contain SSO customers. They do NOT have customer password when creating customer account. That caused a problem in a scenario: If they attempt to change email, they need to enter current password.
But as I said before, they do not have customer password, so they simply can't edit their email currently. Every time they try the change email, it shows the error message "The password doesn't match this account.". So, is there any methods to change the email address without entering customer password?
Best Answer
You this you to need customize
EditPost
controller class below file:In excute method below function check if email change request is sent or not
In
processChangeEmailRequest
function there is check for Password check.You can disable this function call
processChangeEmailRequest
by creating Around event plugin forEditPost
controller.