[Catalyst] User management with Catalyst (with email and URLs)

David Schmidt davewood at gmx.at
Thu Aug 26 09:13:02 GMT 2010


On Thu, Aug 26, 2010 at 10:46 AM,  <Daniel.Brunkhorst at dataport.de> wrote:
> Dear list members,
>
> I guess what I am trying to do is a pretty common task for web developers.
> So I am very astonished that a couple of hours spent searching the Internet
> didn’t provide me with a good starting point for my efforts.
>
> Here’s what I would like to achieve:
>
> A user comes to a web page and enters his email address to join the fun. He
> gets an email with a confirmation URL that leads him back to the site where
> he entered his email address to begin with, he then gets a welcome message
> and is presented a request to enter a password. With his email address and
> the entered password he can from then on login to the protected area at any
> time.
>
> And of course users do forget their passwords, so an automatic password
> retrieval feature would come in handy, too.
>
> Anybody got any good pointers where to start looking for something I can
> customize to my needs?
>
> I can’t imagine I am the first or only one wanting to achieve something like
> the above using Catalyst. Right?
>
> Any hints appreciated.
>
> Thanks,
>
> Daniel.
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>

Basically you need to setup a model (a common one would be
DBIx::Class) to store your users.
(http://search.cpan.org/~rkitover/Catalyst-Model-DBIC-Schema-0.43/lib/Catalyst/Model/DBIC/Schema.pm)

CatalystX::SimpleLogin
(http://search.cpan.org/~bobtfish/CatalystX-SimpleLogin-0.12/)

Then you need to set up the Authentication Plugin
(http://search.cpan.org/dist/Catalyst-Plugin-Authentication/)

and thats pretty much it.



More information about the Catalyst mailing list