don't hash an empty password

pull/1355/head
Patrick O'Brien 7 years ago
parent 94f15f1b3c
commit a463250ecf

2
.gitignore vendored

@ -4,3 +4,5 @@
__pycache__
.cache
.pullapprove.yml
Vagrantfile
.vagrant/

@ -81,8 +81,15 @@ SetWebPassword(){
exit 1
fi
read -s -p "Enter New Password: " PASSWORD
read -s -p "Enter New Password (Blank for no password): " PASSWORD
echo ""
if [ "${PASSWORD}" == "" ]; then
change_setting "WEBPASSWORD" ""
echo "Password Removed"
exit 0
fi
read -s -p "Confirm Password: " CONFIRM
echo ""
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then

Loading…
Cancel
Save