My site uses member pages and I would like to customize the appearance of the login and signup dialogs as well as have the site take action upon member login/logout.
Are there any hook functions available for when a user logs in or logs out?
Is it possible to modify the dialog to include site logo?
Hey, as far as I know user login and signup pages are default Wix pages and they are not really customizable.
But you can set up your custom actions for user login and logout using wix-users API.
https://www.wix.com/code/reference/wix-users.html#promptLogin
https://www.wix.com/code/reference/wix-users.html#logout
For example:
import wixUsers from 'wix-users';
$w.onReady(() => {
wixUsers.promptLogin()
.then( (user) => {
// user sucsessfully logged in
// add your handler here
}).catch((err) => {
// user closed the login dialog
})
}