Commit c13b79c1 authored by Luc Didry's avatar Luc Didry

Update for Mojolicious > 4.63

parent 324c8063
requires 'Mojolicious';
requires 'Mojolicious', '>= 4.63';
requires 'ORLite';
requires 'Data::Validate::URI';
requires 'Mojolicious::Plugin::I18N';
......@@ -11,14 +11,14 @@ sub startup {
my $config = $self->plugin('Config');
# Default values
$config->{provisionning} = 100 unless (defined($config->{provisionning}));
$config->{provis_step} = 5 unless (defined($config->{provis_step}));
$config->{length} = 8 unless (defined($config->{length}));
$config->{secret} = 'hfudsifdsih' unless (defined($config->{secret}));
$config->{provisionning} = 100 unless (defined($config->{provisionning}));
$config->{provis_step} = 5 unless (defined($config->{provis_step}));
$config->{length} = 8 unless (defined($config->{length}));
$config->{secret} = ['hfudsifdsih'] unless (defined($config->{secret}));
$self->plugin('I18N');
$self->secret($config->{secret});
$self->secrets($config->{secret});
$self->helper(
provisionning => sub {
......
......@@ -4,8 +4,8 @@
user => 'www-data',
group => 'www-data'
},
contact => 'luc[at]example.com',
secret => 'fdjsofjoihrei', # optional
contact => 'admin[at]example.com',
secret => ['fdjsofjoihrei'], # optional, but it has to be an array
length => 8, # optional
provis_step => 5, # optional
provisionning => 100 # optional
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment