mirror of
https://github.com/pi-hole/pi-hole
synced 2025-02-08 14:12:38 +00:00
don't hash an empty password
This commit is contained in:
parent
94f15f1b3c
commit
a463250ecf
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
.cache
|
.cache
|
||||||
.pullapprove.yml
|
.pullapprove.yml
|
||||||
|
Vagrantfile
|
||||||
|
.vagrant/
|
||||||
|
@ -81,8 +81,15 @@ SetWebPassword(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -s -p "Enter New Password: " PASSWORD
|
read -s -p "Enter New Password (Blank for no password): " PASSWORD
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
if [ "${PASSWORD}" == "" ]; then
|
||||||
|
change_setting "WEBPASSWORD" ""
|
||||||
|
echo "Password Removed"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
read -s -p "Confirm Password: " CONFIRM
|
read -s -p "Confirm Password: " CONFIRM
|
||||||
echo ""
|
echo ""
|
||||||
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then
|
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user