---
name: "Catalyst::Authentication::Store::Htpasswd::User"
section: "3pm"
platform: "linux"
package: "libcatalyst-authentication-store-htpasswd-perl"
version: "1.006-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::Authentication::Store::Htpasswd::User"
---

# Catalyst::Authentication::Store::Htpasswd::User(3pm)

A user object representing an entry in an htpasswd file.

## NAME

Catalyst::Authentication::Store::Htpasswd::User - A user object representing an entry in an htpasswd file.

## VERSION

version 1.006

## DESCRIPTION

This object wraps an Authen::Htpasswd::User object. An instance of it will be returned by `"$c->user"` when using Catalyst::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.

### for\_session

Returns the username, which is then stored in the session.

### supported\_features

Returns data about which featurs this user module supports.

### get\_object

Returns the underlieing Authen::Htpasswd::User object for this user

## SUPPORT

Bugs may be submitted through the RT bug tracker \<https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Authentication-Store-Htpasswd\> (or bug-Catalyst-Authentication-Store-Htpasswd@rt.cpan.org \<mailto:bug-Catalyst-Authentication-Store-Htpasswd@rt.cpan.org\>).

There is also a mailing list available for users of this distribution, at \<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst\>.

There is also an irc channel available for users of this distribution, at `"#catalyst"` on `"irc.perl.org"` \<irc://irc.perl.org/#catalyst\>.

## AUTHOR

XXXX XXX'XX (Yuval Kogman) \<nothingmuch@woobling.org\>

## COPYRIGHT AND LICENCE

This software is copyright (c) 2005 by XXXX XXX'XX (Yuval Kogman).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
