I have absolutely zero knowledge of coding and have copied the code snip and made changes after reading from multiple forums but its not working as I want it to.
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
$w . onReady ( function (){
$w ( ‘#registerNow’ ). onClick ( function (){
let firstname = $w ( ‘#registerFirst’ ). value ;
let lastname = $w ( ‘#registerLast’ ). value ;
let contact = $w ( ‘#registerContact’ ). value ;
let email = $w ( ‘#registerEmail’ ). value ;
let password = $w ( ‘#registerPassword’ ). value ;
let confirmpassword = $w ( ‘#registerConfirm’ ). value ;
// Here we create the contactInfo Object
let contactInfo = {
“firstname” : firstname ,
“lastname” : lastname ,
“contact” : contact ,
“confirmpassword” : confirmpassword
[}](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[wixUsers](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [.](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [register](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [(](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [email](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [,](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [password](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [,](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [contactInfo](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [)](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[.](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [then](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [(()=>{](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[wixLocation](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [.](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [to](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [(](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [‘/Registration_moreinfo’](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
})) [);](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[})](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[})](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
[})](}
wixUsers.register(email,password,contactInfo)
.then(()=>{
wixLocation.to(‘/Registration_moreinfo’);
})
})
}))
In custom registration, I want to register First name, last name, contact info, email, password and want the person to confirm his or her password. but I am getting the error of " Type ‘{ firstname: string; lastname: string; contact: string; confirmpassword: string; }’ has no properties in common with type ‘RegistrationOptions’. "
I have zero idea of the fix. pls help. Thanks in advance.
I also need the users to be able to reset their passwords for the forgot password using their mail id or mobile number in custom login how to do that? the code snip of login is below
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
$w . onReady ( function (){
$w ( ‘#loginNow’ ). onClick ( function (){
let email = $w ( ‘#loginEmail’ ). value ;
let password = [$w]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [(]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [‘#loginPassword’]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [).]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [value]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [;]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[wixUsers]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [.]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [login]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [(]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [email]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [,]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [password]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [)]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[.]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [then]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [(()=>{]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[wixLocation]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [.]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [to]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [(]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [‘/premium_Members’]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
})) [);]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[})]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[})]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
[})]($w(‘#loginPassword’).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to(‘/premium_Members’);
})
})
}))
The login options asks the users to login twice for some reason, I tried to check and did the recommended fixes but it still asks to login twice every 3 login attempt. I tired clearing cache and cookies and even incognito but issue still persists
The website is rkpoints if needed