Is there a callback function for when you signup/login?

I would like to be able to direct a user to fill up additional information when they sign up or if they login, then I would like the user to go to the members page. I have put this code onReady but it only gets executed when you refresh the page. I would like to this to happen seamlessly as the click on the sign up button or the login button on the overlay window.
please advise.

thanks

chasegc

Hi! There is a function exactly for this:

https://www.wix.com/code/reference/wix-users.html#onLogin

There is an example of it’s usage also

@Mikhail, thanks this worked perfectly.

Where to add the onLogin so that it will be called from all the pages on the website ?