Configurable bcrypt_cost, added TODO

This commit is contained in:
swagg boi 2022-10-19 13:59:57 -04:00
parent 6da98c996c
commit 20f50780c3
3 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ Run the tests locally (against development environment):
## TODOs
1. Some sort of admin/moderator login and view
1. Implement tripcodes
1. CSS
## Crazy future ideas

View file

@ -3,6 +3,7 @@
remarks_per_page => 5,
secrets => ['t0p_s3cr3t'],
tripcode_salt => 't0p_s3cr3t',
bcrypt_cost => 14,
development => {
pg_string =>
'postgresql://post_text:t0p_s3cr3t@127.0.0.1/post_text'

View file

@ -11,7 +11,7 @@ sub startup($self) {
$self->plugin('Config');
$self->plugin('TagHelpers::Pagination');
$self->plugin(AssetPack => {pipes => [qw{Css Combine}]});
$self->plugin('BcryptSecure');
$self->plugin('BcryptSecure', {cost => $self->config->{'bcrypt_cost'}});
# Helpers
$self->helper(pg => sub ($c) {