Did something break. My code was working fine and now I cannot login from my custom login page.
if (email && (password === passwordVerify)) { $w("#registrationSpinner").expand();
wixUsers.register(email, password, {
"contactInfo": {
"firstName": fname,
"lastName": lname
}
}).then((result) => {
console.log("email = " + email + " password = " + password)
wixUsers.login(email, password).then((loginResult) => {
let user = wixUsers.currentUser;
console.log("User Successfully Registered with user.id = " + result.user.id)
console.log("User Successfully Logged In with user.id = " + user.id)
The email and password are being collected and displayed correctly in the console.log statement.
I am now getting the following error
It is not making it to the console.log statement of User Successfully being Registered (although that is happening and I CANNOT subsequently delete the Contact after I delete the newly created Member).
Did something change? Am I missing something? Been doing this quite a while and it has been working in the past.
Thanks in advance for your help.