Login redirect

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

So you have already a working Login-Registration form?

How do look like your form (registration/login-page)?

When i am looking onto your code → i just asume that something missing.

Here you will find an old but very simple custom registration form/page.
Perhaps it can help you…

https://russian-dima.wixsite.com/meinewebsite/blank-9

Take also a look into the VELO-API-DOCs to understand the whole registration and login process. You will also find even some more examples.

With enough effort and interesst, you perhaps also will be able to generate cool custom Logins like the following one…

https://russian-dima.wixsite.com/login-system