Skip to content

Commit

Permalink
* Add generation of BCrypt pepper to makecat operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike committed Nov 17, 2015
1 parent f1de50e commit 65a86af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/strap/catalog.cfg
Expand Up @@ -265,7 +265,7 @@ UserDB default from_plain 1
# The pepper should be unique for your site, but note that if you change this,
# it will make previously-crypted passwords inaccessible --
# so set this before you start adding users, or don't set at all.
#UserDB default bcrypt_pepper CHANGE_ME_255370299252265
UserDB default bcrypt_pepper __BCRYPT_PEPPER__

# Set to 1 to make the username and password case-insensitive
UserDB default ignore_case 1
Expand Down
4 changes: 4 additions & 0 deletions dist/strap/config/makedirs
Expand Up @@ -90,6 +90,10 @@ fi
chmod $FMODE __MVC_RELOCATE__$LOGDIR/logs/error.log
chmod $FMODE __MVC_RELOCATE____MVC_CATROOT__/catalog.cfg


## Create Bcrypt Pepper
perl -e '@c=("A".."Z","a".."z",0..9);$p.=$c[rand(scalar @c)] for 1..32; print $p' > __MVC_RELOCATE____MVC_CATROOT__/variables/BCRYPT_PEPPER

# Make cache directories to store tmps.
if test -n '__MVC_CACHEDIR__'
then
Expand Down

0 comments on commit 65a86af

Please sign in to comment.