[web-devel] How to use Yesod.Auth.HashDB?
lazarev.michael at gmail.com
Sun Feb 12 15:11:48 CET 2012
Thanks, and sorry about posting it here.
It looks I did this by old memory, back when Yesod was mainly
discussed in web-devel list.
2012/2/11 Greg Weber <greg at gregweber.info>:
> This question seems Yesod specific - I am forwarding to the Yesod mail list.
> On Fri, Feb 10, 2012 at 2:59 PM, Michael Lazarev
> <lazarev.michael at gmail.com> wrote:
>> Hello everybody!
>> In one app I develop, users will not register by themselves. Instead,
>> they will be added to the system and assigned roles by administrator.
>> For that case, HashDB auth plugin looked the right choice for me.
>> TL;DR: The setup proposed in Yesod.Auth.HashDB documentation didn't
>> work for me. Finally I found the solution. I wonder if putting User
>> entity definition in Yesod.Auth.HashDB module is a good idea.
>> There are three reasons I post this: to publish my solution for
>> anybody having the same problem, to ask a question if I am doing it
>> right, and, last but not least, to submit a feedback to Yesod authors.
More information about the web-devel