How to Change the Text of Forgot Password Option with Lock.js

Overview

Using Classic Login with Lock.js, the forgot password prompt on the login screen says “Don’t remember your password?” and needs to be customized.

Applies To

  • Text Customization
  • Classic Login
  • Lock.js

Solution

To customize the language in the lock widget, please look into the languageDictionary object within options:

languageDictionary: {
    forgotPasswordAction: "your custom text goes here",
}

Related References