Question:
Hello, I am working in Wix Editor Velo and need to create an “InCorrect Password” Error Message for my custom login page, if a user types in a Wrong Password for their account. Below is my code. Any suggestions would be appreciated as to what I should add in
Product:
Wix Editor, Velo
Code:
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('#loginPassword').value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to('/members');
})
})