import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
$w.onReady(function () {
$w('#registerNow').onClick(function () {
let email = $w('#registerEmail').value;
let password = $w('#resgisterPassword').value;
wixUsers.register(email,password)
.then(() => {
wixLocation.to('/page')
})
})
});
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('/page')
})
})
});
Comments