Page flow through login

Somewhat of a newbie here (though I got an app to work fully).

Now, I want to put it behind a login, but just adding a login popup (wall) makes bad sense from a POV of UX. I would like the following flow:

  1. Show some text (motivate people to register)
  2. Registration / login
  3. My app

I was thinking of doing that with two forms, if the user is not logged in, it shows page1 (registration/login), if the user is logged in, they see page2 (the app).

I could not find any tutorials on how to create this flow. Any suggestions or directions would be appreciated!

I highly recommend using the routing module from Anvil Extras for this. It allows you to give distinct URLs to different forms, and to route to different forms based on the login status of the user.

Here’s an example that shows using routing for maintaining a public area, a user area, and an admin area: Anvil | Login

2 Likes

Thank you! I think that is exactly what I was looking for!

1 Like