* 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:
parent
f6fcbf9245
commit
33f3bee810
@ -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>
|
|
@ -24,6 +24,25 @@ __PACKAGE__->config(
|
|||||||
default_view => "TT",
|
default_view => "TT",
|
||||||
session => {
|
session => {
|
||||||
storage => getHydraPath . "/session_data"
|
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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user