Hi,
Here is the code i tryed,
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
$w( ‘#loginNow’ ).onClick( function (){
let email = $w( ‘#loginEmail’ ).value;
let password = $w( ‘#loginPassword’ ).value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to( / ${email}
});
});
});
$w.onReady( function (){
$w( ‘#registerNow’ ).onClick( function (){
let email = $w( ‘#registerEmail’ ).value;
let password = $w( ‘#registerPassword’ ).value;
wixUsers.register(email,password)
.then(()=>{
wixLocation.to( ‘/home’ );
})
})
})
register works perfect however, im not being redirected when trying it with a test email,
I have created a page titled with the test email but still no redirect.
thoughts?