mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
don't hash an empty password
This commit is contained in:
parent
94f15f1b3c
commit
a463250ecf
2 changed files with 10 additions and 1 deletions
2
.gitignore
vendored
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…
Reference in a new issue