@gamertohelllandback Hey, my bad, I was a bit to fast when copy/pasting
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
$w.onReady(function(){
$w("#LoginError").hide();
$w('#loginNow').onClick(function (){
let email = $w('#loginEmail').value;
let password = $w('#loginPassword').value;
wixUsers.login(email, password)
.then(()=>{
wixLocation.to('/members-area');
})
//Should show the error message if email/password not found
.catch(()=>{
$w("#LoginError").show();
})
})
})
This works when I’m testing it at least. I’d forgotten the arrow function part of the catch statement in my initial answer.