Changeset 35 for server/trunk/web/lib/Sophie
- Timestamp:
- 11/25/10 02:40:30 (14 years ago)
- Location:
- server/trunk/web/lib/Sophie
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Login.pm
r33 r35 26 26 27 27 if ($c->authenticate({ 28 id=> $login || $c->req->param('username'),28 mail => $login || $c->req->param('username'), 29 29 password => $password || $c->req->param('password'), 30 30 } -
server/trunk/web/lib/Sophie/Model/Base.pm
r4 r35 2 2 3 3 use strict; 4 use base 'Sophie::Base'; 5 use base 'Catalyst::Model'; 4 use base 'Catalyst::Model::DBIC::Schema'; 6 5 7 sub new { 8 my ($class) = @_; 9 bless($class->connect, $class); 10 } 6 __PACKAGE__->config( 7 schema_class => 'Sophie::Base', 8 connect_info => { 9 dsn => 'toto', 10 }, 11 12 ); 11 13 12 14 =head1 NAME 13 15 14 Sophie::Model:: Base - Catalyst DBIC Schema Model16 Sophie::Model::Sophie - Catalyst DBIC Schema Model 15 17 16 18 =head1 SYNOPSIS
Note: See TracChangeset
for help on using the changeset viewer.