CUSTOM LOGIN FORM - VELO BY WIX
- eggwebtut
- Feb 18, 2021
- 1 min read
Updated: Mar 10, 2021
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
$w.onReady(function(){
$w('#loginButton').onClick(function (){
let email = $w('#email').value;
let password = $w('#password').value;
wixUsers.login(email,password)
.then(()=>{
wixLocation.to('/example-page');
})
})
})
$w.onReady(function () { $w("#forgotPassword").onClick( (event) => { //wixWindow.lightbox.close() wixUsers.promptForgotPassword() .then( ( ) => { // } ) .catch( (err) => { let errorMsg = err; //"The user closed the forgot password dialog" }); }); });


Comments