mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-05 13:40:56 +00:00
Update Marks PR after the Promo code has been merged
This commit is contained in:
parent
7c2046cce7
commit
9cc392fa02
@ -88,6 +88,10 @@ SetWebPassword(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( ${#args[2]} > 0 )) ; then
|
||||||
|
readonly PASSWORD="${args[2]}"
|
||||||
|
readonly CONFIRM="${PASSWORD}"
|
||||||
|
else
|
||||||
read -s -p "Enter New Password (Blank for no password): " PASSWORD
|
read -s -p "Enter New Password (Blank for no password): " PASSWORD
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
@ -99,6 +103,8 @@ SetWebPassword(){
|
|||||||
|
|
||||||
read -s -p "Confirm Password: " CONFIRM
|
read -s -p "Confirm Password: " CONFIRM
|
||||||
echo ""
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then
|
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then
|
||||||
hash=$(HashPassword ${PASSWORD})
|
hash=$(HashPassword ${PASSWORD})
|
||||||
# Save hash to file
|
# Save hash to file
|
||||||
|
Loading…
Reference in New Issue
Block a user