[web-devel] Yesod + email auth

Karsten Gebbert k at ioctl.it
Wed Sep 17 15:25:03 UTC 2014


digging deeper into the source, I found that its basically trying to
re-direct to the parent route, which, in this case is not obvious which
one that is? My guess is that its the PluginR Route, since it matches
the one I'm redirected to.

    https://github.com/yesodweb/yesod/blob/master/yesod-auth/Yesod/Auth/Routes.hs

 
My question would be: is there a standard way of dealing with this kind
of failure that I'm overlooking? Shouldn't the default for unsuccessful
logins be /auth/login ?

Thanks for any pointers,

k

Karsten Gebbert <k at ioctl.it> writes:

> Hi List,
>
> I'm seeing a somewhat unexpected behaviour using Yesod.Auth.Email. What
> I'm doing is this: I enter a password into the form, but no email, and
> the login handler redirects me to /auth/page/email/login which seems to
> use the default layout (I specified a separate layout for auth) and does
> not render the login form. I can't see a method that lets me override
> where the user is sent on unsuccessful login, and judging from reading
> the sources I should be sent the LoginR way. Any idea what I could be
> doing wrong here?
>
> Thanks all,
>
> Karsten
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel


More information about the web-devel mailing list