Closed brianmay closed 2 years ago
You want to use the on_unauthenticated
option (https://hexdocs.pm/plugoid/Plugoid.html#module-additional-plug-options).
Example in plugoid_demo
: https://github.com/tanguilp/plugoid_demo/blob/master/lib/plugoid_demo_web/router.ex#L34
Yes, looks like that does it. Thanks
I commonly have a
/
page that shows a brief introduction to the website, and then allows the user to login if they aren't already logged. To do this, I generally use two pipelines:Would be good if there was some way of doing this with plugoid.