You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Yesod Web Framework
Hi everyone,
is there a way to have more control on when yesod redirects to the default destination on login/signup?
I have some specific routes where I don't want the users to be redirected to, but it looks like there's no direct way to handle this right now (just a global Bool).
Any ideas?
jsch...@gmail.com
unread,
May 26, 2022, 9:09:34 AM5/26/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Yesod Web Framework
You could use manual authentication instead of the isAuthorized function in Foundation.hs.
For pages where I have user-defined behavior if no user is logged in, I use maybeAuth together with redirect at the beginning of every handler.