Can anyone please help me out here.
My website was working absolutely fine up until a few days ago.
Now people can not login , click forgot password or submit registration request.
Here is my code for the lightbox, I have checked all of the object names to ensure they match.
It appears that wherever Wix-Users is involved it just has stopped working.
Is anyone else having this issue? as im at the end of my tether with this. i could revert to the Wix standard login however i dont feel it is fit for a customer facing website.
I contacted Wix support who claim i need to include the members data set in my page and link each individual item to the data set, however i believe this to be incorrect as there is no forgot password in the data set, nor is there a password field to link.
Also if you do try to link an email - you cannot type into the box
I have tried reverting to my last release over over 3 weeks ago, still didnt work. I have copied my exisitng light boxes as this seemed to fix a bug that was present last month, this also didnt work
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function (){
$w("#forgottenPassword").onClick(
(event) => {
//WixWindow.lightbox.close//wixWindow.lightbox.close()
wixUsers.promptForgotPassword()
.then( ( ) =>{
//
})
.catch((err) => {
let errorMsg = err; //"The user closed the forgot password dialog"
});
});
});
$w.onReady(function(){
$w('#loginNow').onClick(function (){
let email = $w('#loginEmail').value;
let password = $w('#loginPassword').value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to('/HOME');
})
.catch((err) => {
console.log(err);
$w("#passwordWrong").expand();
});
})
})
Here is the code for my registration
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
$w.onReady(function(){
$w('#registerNow').onClick(function (){
let email = $w('#email').value;
let companyName = $w('#companyName').value; // the user's company name
let password = $w('#password').value; // the user's password
let firstName = $w('#firstName').value; // the user's first name
let lastName = $w('#lastName').value; // the user's last name
wixUsers.register(email, password, {
contactInfo: {
"firstName": firstName,
"lastName": lastName,
"companyName": companyName,
}
})
.then( (result) => {
let status = result.status;
let approvalToken = result.approvalToken; // "Pending"
let user = result.user;
wixLocation.to('/exit');
})
})
})