[web-devel] Including saltPass in the Auth2.Email API

Michael Snoyman michael at snoyman.com
Tue Oct 19 15:00:02 CEST 2010


Well, there's setCreds[1], is that what you're looking for? It's what
the individual authentication backends (email, openid, rpxnow,
facebook) each call.

[1] http://hackage.haskell.org/packages/archive/yesod-auth/0.1.4/doc/html/Yesod-Helpers-Auth2.html#v:setCreds

On Tue, Oct 19, 2010 at 10:44 AM, Max Cantor <mxcantor at gmail.com> wrote:
> Furthermore, a programmatic way to login besides redirecting to the login route would be helpful..
>
> Max
>
> On Oct 19, 2010, at 1:30 PM, Michael Snoyman wrote:
>
>> On Tue, Oct 19, 2010 at 7:18 AM, Max Cantor <mxcantor at gmail.com> wrote:
>>> Michael,
>>>
>>> What do you think about exporting the saltPass function in the Auth2.Email plugin.  The reason I would want this would be so that passwords could be set programmatically as opposed to solely via the current form.  Currently, I just cut and pasted the code into my code, but it doesn't seem like this is a particularly sane/future-proof way to work.  Any thoughts?
>>
>> Sounds great, I've justed pushed a commit to Git. By the way, starting
>> with yesod 0.6/yesod-auth 0.2, the code lives under
>> Yesod.Helpers.Auth.*, as it should. The Auth2 namespace was only to
>> avoid conflicts with yesod 0.5. You mind waiting till 0.6 is released
>> to have access to this function?
>>
>> By the way, porting to 0.6 should be a piece of cake.
>>
>> Michael
>
>


More information about the web-devel mailing list