smol tweaks

This commit is contained in:
swagg boi 2023-06-15 11:04:47 -04:00
parent 62673f5aec
commit b4bcf613dd
3 changed files with 4 additions and 5 deletions

View file

@ -15,6 +15,9 @@ COPY post_text.conf .
# Dependency time # Dependency time
RUN apt-get update RUN apt-get update
RUN apt-get -y upgrade RUN apt-get -y upgrade
# Work around for test failing due to headers being lowercase now that
# cpan.org is on HTTP/2
RUN cpanm --notest Net::HTTP
RUN cpanm --installdeps . RUN cpanm --installdeps .
# Test it # Test it

View file

@ -3,7 +3,6 @@ requires 'Mojo::Pg';
requires 'Mojolicious::Plugin::TagHelpers::Pagination'; requires 'Mojolicious::Plugin::TagHelpers::Pagination';
requires 'Mojolicious::Plugin::AssetPack'; requires 'Mojolicious::Plugin::AssetPack';
requires 'Crypt::Passphrase::Argon2'; requires 'Crypt::Passphrase::Argon2';
requires 'Crypt::Passphrase::Bcrypt'; # Needed for old passphrases
requires 'Date::Format'; requires 'Date::Format';
requires 'XML::RSS'; requires 'XML::RSS';
requires 'CSS::Minifier::XS'; requires 'CSS::Minifier::XS';

View file

@ -24,10 +24,7 @@ sub startup($self) {
}); });
$self->helper(authenticator => sub ($c) { $self->helper(authenticator => sub ($c) {
state $authenticator = Crypt::Passphrase->new( state $authenticator = Crypt::Passphrase->new(encoder => 'Argon2')
encoder => 'Argon2',
validators => ['Bcrypt'], # For old passphrases
)
}); });
$self->helper(hr => sub ($c) { $self->helper(hr => sub ($c) {