Closed
Description
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
- v11.31 or 11.32
- In Universal Login : https://cdn.auth0.com/js/lock/11.31/lock.min.js
- Custom connection resolver is defined
- I feel this PR [SDK-2823] Fix password reset when using custom connection resolver #2048 from @stevehobbsdev could be the culprit, as it has changed behavior in 11.31