decrease minimum password length to 30 characters

This commit is contained in:
developer 2019-09-25 20:24:26 +02:00
parent bc078720fe
commit 37f39a8c46

View file

@ -25,7 +25,7 @@ cmd=$(getp cmd)
# check secret
# the secrets file has to contain the hashes on a single line, comments are allowed on seperate lines
# secrets can only contain the characters that are allowed in getp() with tr -dc
if [ -z "$secret" ] || [ $secret_length -lt 73 ] || ! grep -q ";$hashed_secret$" /etc/tuer3.0/door_access_list; then
if [ -z "$secret" ] || [ $secret_length -lt 30 ] || ! grep -q ";$hashed_secret$" /etc/tuer3.0/door_access_list; then
header
[ -z "$secret" ] || echo "<html><p>Ich bin mir nicht sicher. Mir scheint, du bist doch ein Kohlkopf oder Anderes!</p>"
# $hashed_secret"