8000 Impossible to type in reset password field when custom connection resolver is defined (>= 11.31) · Issue #2106 · auth0/lock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Impossible to type in reset password field when custom connection resolver is defined (>= 11.31) #2106
Closed
@avinesse

Description

@avinesse

Describe the problem

Starting on v 11.31 :
When clicking "forgot password?" on the lock, it's impossible to type in the email field when a connectionResolver is defined in lockOptions.
Our connection resolver is defined as follows :

    connectionResolver: function (username, context, cb) {
      var isAdmin = /\+admin@anon.org$/.test(username);
      if (isAdmin) {
        // If the username is xxx+admin@anon.org, the connection used will be the `anon-userdb` connection.
        cb({type: 'database', name: 'anon-userdb'});
      } else {
        // Use the default approach to figure it out the connection
        cb(null);
      }
    },

Reverting to v11.30 works fine

What was the expected behavior?

Users should be able to type an email.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportThis issue reports a suspect bug or issue with the SDK itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0