Custom Registration Code

Custom Registration Code:

import wixUsers from 'wix-users';

import wixLocation from 'wix-location';

$w.onReady(function(){

$w('#register').onClick(function (){

let email = $w('#email').value;

let password = $w('#password').value;

wixUsers.register(email,password)

.then(()=>{

wixLocation.to('/testing');

})

})

})