top of page

Create Custom Login / Sign Up Pages with Velo

Custom Sign Up:


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')
        })
    })
});

Custom Login:



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')
        })
    })
});

Enjoy!

bottom of page