HI,
I want to create a custom login such that it redirects the users to profile creation page on their first login and from the second login onwards redirects users to member specific areas which are controlled by the member roles.
I have zero knowledge of coding so please keep the answer as simple as possible
This is the login code I’m using right now,
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 ( ‘/Registration_moreinfo’ );
})
})
})
Registration is also custom and admin controlled