extends 'Catalyst::Model';
with 'CatalystX::Component::Traits';
-our $VERSION = '0.30';
+our $VERSION = '0.32';
$VERSION = eval $VERSION;
use namespace::autoclean;
...
- __PACKAGE__->config->{authentication} =
- {
+ __PACKAGE__->config('Plugin::Authentication' =>
+ {
default_realm => 'members',
- realms => {
- members => {
- credential => {
- class => 'Password',
- password_field => 'password',
- password_type => 'hashed'
- password_hash_type => 'SHA-256'
- },
- store => {
- class => 'DBIx::Class',
- user_model => 'DB::User',
- role_relation => 'roles',
- role_field => 'rolename',
- }
+ members => {
+ credential => {
+ class => 'Password',
+ password_field => 'password',
+ password_type => 'hashed'
+ password_hash_type => 'SHA-256'
+ },
+ store => {
+ class => 'DBIx::Class',
+ user_model => 'DB::User',
+ role_relation => 'roles',
+ role_field => 'rolename',
}
}
- };
+ });
=head1 SEE ALSO
caelum: Rafael Kitover C<rkitover at cpan.org>
-Dan Dascalescu C<dandv at cpan.org>
+dandv: Dan Dascalescu C<dandv at cpan.org>
-Aran Deltac C<bluefeet@cpan.org>
+bluefeet: Aran Deltac C<bluefeet@cpan.org>
+
+t0m: Tomas Doran C<bobtfish@bobtfish.net>
+
+osfameron: C<osfameron@cpan.org>
+
+Ozum Eldogan C<ozum@ozum.net>
=head1 COPYRIGHT
+Copyright (c) 2006 - 2009
+the Catalyst::Model::DBIC::Schema L</AUTHOR> and L</CONTRIBUTORS>
+as listed above.
+
+=head1 LICENSE
+
This program is free software. You can redistribute it and/or modify it
under the same terms as Perl itself.