* Don't use a config file by default. This frees up $HYDRA_CONFIG so

that the user can specify one.
This commit is contained in:
Eelco Dolstra 2008-11-29 00:04:45 +00:00
parent f6fcbf9245
commit 33f3bee810
2 changed files with 19 additions and 21 deletions

View file

@ -1,21 +0,0 @@
name Hydra
<authentication>
default_realm dbic
<realms>
<dbic>
<credential>
class Password
password_field password
password_type hashed
password_hash_type SHA-1
</credential>
<store>
class DBIx::Class
user_class DB::Users
role_relation userroles
role_field role
</store>
</dbic>
</realms>
</authentication>

View file

@ -24,6 +24,25 @@ __PACKAGE__->config(
default_view => "TT",
session => {
storage => getHydraPath . "/session_data"
},
authentication => {
default_realm => "dbic",
realms => {
dbic => {
credential => {
class => "Password",
password_field => "password",
password_type => "hashed",
password_hash_type => "SHA-1",
},
store => {
class => "DBIx::Class",
user_class => "DB::Users",
role_relation => "userroles",
role_field => "role",
},
},
},
}
);