Subject: | Undocumented feature: password_hash |
The attachment is my addition to the pod section of the module.
HTH.
Marcello
--- cdbi.pm 2005-07-11 13:57:14.000000000 +0200
+++ CDBI-new.pm 2005-11-30 12:28:02.328125000 +0100
@@ -17,7 +17,8 @@
user_field => 'email',
role_class => 'PetStore::Model::CDBI::Role',
user_role_class => 'PetStore::Model::CDBI::CustomerRole',
- user_role_user_field => 'customer'
+ user_role_user_field => 'customer',
+ password_hash => 'md5', # optional parameter; see below
};
$c->login( $user, $password );
$c->logout;
@@ -47,6 +48,23 @@
Note that this plugin requires a session plugin like
C<Catalyst::Plugin::Session::FastMmap>.
+=head2 CONFIGURATION
+
+=over 4
+
+=item password_hash
+
+This optional parameter can be used to specify the hash algorthm used to store passwords in the database.
+If not specified, passwords are stored in clear text.
+
+Currently theses values are supported:
+
+'MD5', which causes Digest::MD5 to be used;
+
+'SHA', which causes Digest::SHA to be used.
+
+=back
+
=head2 METHODS
=over 4