From 21b54fa08dc7e5825a1c3fc918180f66abd1740d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 21 May 2016 15:30:05 +0100 Subject: [PATCH] Blog password encryption type --- src/freedombone | 2 +- src/freedombone-adduser | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone b/src/freedombone index aee93f55..7106c9a1 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8081,7 +8081,7 @@ function install_blog { fi echo ';Password' > /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo "password = $FULLBLOG_ADMIN_PASSWORD_HASH" >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini - echo 'encryption = bcrypt' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini + echo 'encryption = password_hash' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo ';Role' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo 'role = admin' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini diff --git a/src/freedombone-adduser b/src/freedombone-adduser index 36a49139..8da8662c 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -254,7 +254,7 @@ if grep -q "Blog domain" $COMPLETION_FILE; then fi echo ';Password' > /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo "password = $NEW_USER_PASSWORD_HASH" >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini - echo 'encryption = bcrypt' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini + echo 'encryption = password_hash' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo ';Role' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo 'role = admin' >> /var/www/$FULLBLOG_DOMAIN_NAME/htdocs/config/users/$MY_USERNAME.ini echo "$MY_USERNAME added as a blog user"