|
|
@ -16,6 +16,12 @@ sub startup { |
|
|
|
$self->app->mode('production'); |
|
|
|
$self->app->mode('production'); |
|
|
|
$self->app->secret($self->app->config->{secret}); |
|
|
|
$self->app->secret($self->app->config->{secret}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$self->app->attr(email => sub { |
|
|
|
|
|
|
|
require LDV::Email; |
|
|
|
|
|
|
|
my $email = LDV::Email->new($self->app->config->{email} // {}); |
|
|
|
|
|
|
|
return $email; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$self->app->attr(ldap => sub { |
|
|
|
$self->app->attr(ldap => sub { |
|
|
|
require LDV::LDAP; |
|
|
|
require LDV::LDAP; |
|
|
|
my $ldap = LDV::LDAP->new($self->app->config->{ldap}); |
|
|
|
my $ldap = LDV::LDAP->new($self->app->config->{ldap}); |
|
|
|