Changeset 35 for server/trunk/web/lib/Sophie.pm
- Timestamp:
- 11/25/10 02:40:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie.pm
r19 r35 58 58 class => 'Password', 59 59 password_field => 'password', 60 password_type => 'c lear'60 password_type => 'crypted' 61 61 }, 62 62 store => { 63 class => 'Minimal', 64 users => { 65 admin => { 66 password => 'toto', 67 } 68 } 63 class => 'DBIx::Class', 64 user_model => 'Base::Users', 65 role_relation => 'UsersRoles', 66 role_field => 'rolename', 67 id_field => 'mail', 69 68 }, 70 69 }, … … 75 74 __PACKAGE__->config->{session} = { 76 75 expires => 3600, 77 dbi_d sn => 'noo',76 dbi_dbh => 'Base', 78 77 dbi_table => 'sessions', 79 78 }; … … 81 80 # Start the application 82 81 __PACKAGE__->setup(); 83 84 # This is after because db config is in config file85 __PACKAGE__->config->{session}{dbi_dsn} =86 'dbi:Pg:' . __PACKAGE__->config->{dbconnect};87 __PACKAGE__->config->{session}{dbi_user} =88 __PACKAGE__->config->{dbuser};89 __PACKAGE__->config->{session}{dbi_pass} =90 __PACKAGE__->config->{dbpassword};91 92 82 93 83 =head1 NAME
Note: See TracChangeset
for help on using the changeset viewer.