[web-devel] YesodAuth and E-Mail

Michael Snoyman michael at snoyman.com
Sun Apr 3 13:18:06 CEST 2011


On Sun, Apr 3, 2011 at 1:59 PM, "Timo B. Hübel" <t.h at gmx.info> wrote:
> Hi,
>
> I am using YesodAuth with the e-mail plugin for login/signup. I have
> successfully spread some links for login and logout throughout my app, but I
> also want to link to the signup page from somewhere else (the one which is
> accessible via the "I don't have an account" link on the login page). Is
> this possible?

With yesod-auth 0.3.1, you can get a link to the register page using this:

    PluginR "email" ["register"]

The fact that you need to type that in manually is a simple mistake on
my part: I meant to export that route (along with login and set
password). If you upgrade to 0.3.2 (which I just released), you can
instead use the registerR value exported by the Email module.

Michael



More information about the web-devel mailing list