You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
},
Hi !
Thanks for fixing the issue but there seems to be a new bug following this release. I can now type the email in the reset password field but the connection used for the reset password is not correct anymore. I have the same logic as described above but when using the cb(null); callback it's not selecting the default connection anymore ?
Thanks
If I try to reset the password directly then the wrong connection is being used.
If I try to first login with the user, it fails because I can't remember the password then I trigger the password change flow, it is using the correct connection.
Hi @Camsteack I've tried reproducing your problem with the new version but it seems to work fine on my end (I mean I see the correct connection in the payload of the POST /change_password request).
Can you share you connectionResolver to see if anything is different?
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 :
Reverting to v11.30 works fine
What was the expected behavior?
Users should be able to type an email.
Environment
The text was updated successfully, but these errors were encountered: