For some reason, users if they decide to change their password are automatically returned to the default group.
For example if they are in the VIP group. and they change the password. their password changes but they appear in the general group.
I am in the latest version Magento ver. 2.3.5-p1.
Note: from the admin side if I send the reset the password email for the client, they keep their group. they only lose their group if they do it from the "forgot password" or "my account"
I found this was dealt with older versions of M2 but is happening to me now and I can't fix it.
for a quick fix to this;
Line 83'ish, change;
$isGroupIdEmpty = !isset($allowedAttributes['group_id']);
$isGroupIdEmpty = !isset($customerData['group_id']);
This was Magento core issue and its already been fixed:
This is also happening for us, but when the customer changes their name from the front end rather than the pasword.
We are using version 2.3.5-p1
Will the above fix the issue, and if so, can you give me the full path as to where to find the file to edit.
The error is caused by Magento core. To solve it, you need to access the root folder of Magento by using the link:
After that, search for: "$isGroupIdEmpty = !isset($allowedAttributes['group_id']);"
and change it to: "$isGroupIdEmpty = !isset($customerData['group_id']);"
Hope this can help you! Let me know if you need further assistance.
If issue solved, Click Kudos & Accept as Solution.