mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 09:03:17 +00:00
Stores password as hash
Uses sha256
This commit is contained in:
parent
b07b77c58f
commit
fc4409b2c3
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ setPassword() {
|
|||
|
||||
if [ $? = 0 ]; then
|
||||
# Entered password
|
||||
echo $pass > /etc/pihole/password.txt
|
||||
echo -n "$pass" | sha256sum | awk '{print $1}' > /etc/pihole/password.txt
|
||||
else
|
||||
echo "::: Cancel selected, exiting...."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue