Enforce minimum password quality

This commit is contained in:
Bob Mottram 2015-01-18 15:39:06 +00:00
parent 344c87b2f2
commit 74c3bc2578
1 changed files with 10 additions and 6 deletions

View File

@ -617,6 +617,10 @@ function interactive_configuration {
1) exit 0;;
255) exit 0;;
esac
if [ ${#DDNS_PASSWORD} -lt $MINIMUM_PASSWORD_LENGTH ]; then
dialog --title "Password quality check" --msgbox "The password given was too short. It must be at least $MINIMUM_PASSWORD_LENGTH characters" 6 40
DDNS_PASSWORD=""
fi
done
while [ ! $MY_NAME ]