[Catalyst] C::P::Authentication, force user authentication

Rafał Pocztarski r.pocztarski at gmail.com
Mon Dec 28 11:46:48 GMT 2009


On Mon, Dec 28, 2009 at 10:00, David Schmidt <davewood at gmx.at> wrote:
> Hello
>
> When a user lost his password I send a digest by email.
> If he enters this digest I want to automatically authenticate the user
> so he can edit his password.

You can add another authentication realm to do what you need and then
either provide a separate form to enter the temporary password using
your new realm, or use a progressive realm to authenticate the user
against multiple realms in one call to the authenticate() method.

See the example in:
http://search.cpan.org/perldoc?Catalyst::Authentication::Realm::Progressive

Rafał Pocztarski



More information about the Catalyst mailing list