Enforce minimum password quality
This commit is contained in:
parent
344c87b2f2
commit
74c3bc2578
|
@ -617,6 +617,10 @@ function interactive_configuration {
|
||||||
1) exit 0;;
|
1) exit 0;;
|
||||||
255) exit 0;;
|
255) exit 0;;
|
||||||
esac
|
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
|
done
|
||||||
|
|
||||||
while [ ! $MY_NAME ]
|
while [ ! $MY_NAME ]
|
||||||
|
|
Loading…
Reference in New Issue