- enable 'Log4perl', category => 'plack', conf => 'log.conf';
- enable \&require_admin;
- enable_if \&some_auth_required, 'Auth::Basic', authenticator => \&authenticate, realm => 'Gruntmaster 6000';
- Plack::App::Gruntmaster->to_app
+ enable 'Log4perl', category => 'plack';
+ enable \&add_database;
+ enable '+Plack::App::Gruntmaster::Auth',
+ dbi_connect => [$ENV{GRUNTMASTER_DSN} // 'dbi:Pg:', '', ''],
+ realm => 'Gruntmaster 6000',
+ mail_from => $ENV{GRUNTMASTER_RESET_FROM};
+ Plack::App::Gruntmaster->run_if_script