geoff-maddock / events-tracker

CRM and calendar to track events, weekly and monthly series, promoters, artists, producers, djs, venues and other entities.
https://arcane.city
MIT License
16 stars 6 forks source link

Actions that require login - make visible to visitors #678

Open geoff-maddock opened 2 years ago

geoff-maddock commented 2 years ago

As a new user to the site, I would like to be able to see what actions are available to registered users, and when I click them, it asks me to log-in or sign up.

In cases like following an event, entity or tag, we want users to know about those features as an impetus to sign up. Currently they are hidden in the UI, so they won't see them or be able to click on them.

Fixed:

Some to change:

geoff-maddock commented 2 years ago

The difficulty here is how to redirect users after login when these actions can occur from different routes.
The back redirect ends up redirecting the user to the login after they have logged in, which is confusing.

geoff-maddock commented 2 years ago

Looking for a better solution here as I'm not sure how to handle this.

geoff-maddock commented 2 years ago

Trying some things as per this thread, but no great answer yet. https://laracasts.com/discuss/channels/general-discussion/how-to-redirect-to-previous-page-after-action-that-is-behind-auth-middleware?page=1&replyId=751017

geoff-maddock commented 2 years ago

May have to revert my last changes, running into some weird issues with logins redirecting to home when not logging in.

geoff-maddock commented 2 years ago

Keeping this issue, but taking it off my plate for now.