Rechercher une page de manuel
Catalyst::Plugin::Authentication::Store::Htpasswd::User.3pm
Langue: en
Version: 2008-03-11 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Catalyst::Plugin::Authentication::Store::Htpasswd::User - A user object representing an entry in an htpasswd file.DESCRIPTION
This object wraps an Authen::Htpasswd::User object. An instance of it will be returned by "$c->user" when using Catalyst::Plugin::Authentication::Store::Htpasswd. Methods not defined in this module are passed through to the Authen::Htpasswd::User object. The object stringifies to the username.METHODS
new($store,$user)
Creates a new object from a store object, normally an instance of Catalyst::Plugin::Authentication::Store::Htpasswd::Backend, and a user object, normally an instance of Authen::Htpasswd::User.
id
Returns the username.
check_password($password)
Returns whether the password is valid.
roles
Returns an array of roles, which is extracted from a comma-separated list in the third field of the htpasswd file.
COPYRIGHT & LICENSE
Copyright (c) 2005 the aforementioned authors. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre