Overview
The password reset flow fails for existing users in a custom DB with import mode turned off when they try to reset their password. The password reset email is not sent, and on the login widget, the below error is shown:
Something went wrong. Please try again later.
The dashboard logs show an error message with the description "unknown error " and the log type “fcpr”.
Solution
Get User script is executed to check if the user exists in the external DB. If the user is found, the Get User script should return the user profile with the following structure:
callback(null, profile);
Make sure the callback function parameters are in the correct order, and the user profile is complete. An incorrect parameter signature in the callback function can cause the "unknown error " log with the “fcpr” type.