Auth0 Home Blog Docs

Change Password succeeds but sends failed message



Upon clicking “Reset Password”, the email is successfully sent and the URL is correctly set to our custom domain.

After entering a new password, attempting to login with that new password will succeed but the message received by the user is: “There was an error processing the password reset”

Extra info:

  • We are using the template Mongo DB password change script
  • The context information for the “failed” password change is attached below
  "date": "2018-07-25T18:34:37.399Z",
  "type": "fcp",
  "description": "The operation cannot be completed. Please try again.",
  "connection": "compose-mongo",
  "client_name": "PalleTech Live Dashboard",
  "details": {
    "title": "Change Password",
    "email": "",
    "body": {
      "newPassword": "*****",
      "confirmNewPassword": "*****",
      "_csrf": "***",
      "ticket": "***"
    "query": {
      "email": "",
      "username": null,
      "newPassword": null,
      "tenant": "***",
      "client_id": "my client id",
      "connection": "compose-mongo",
      "resultUrl": ""
  "user_id": "",
  "user_name": "***",
  "strategy": "auth0",
  "strategy_type": "database",
  "log_id": "***"


Managed to resolve this issue - will explain here in case anyone else has this same problem:

The issue lies with the MongoDB Auth0-supplied template for custom database connections. The default callback checks that count > 0 but count in the callback is not actually a count… (at least not in the version of Mongo we are running)

The solution was to check that count.result.n > 0 which evaluates to true when a password has been successfully modified.