Commit 13d84754 authored by Robin's avatar Robin
Browse files

Corrected bogus with char types

parent 8bd160a9
......@@ -19,7 +19,7 @@ check_password_selfname="on" # Is the mail name the password or not
check_password_domain="on" # Is the domain name the password or not
check_password_simple="on" # Is the mail password too simple or not
check_password_charset="on" # Are characters in use too simple or not
password_charset_required="3" # How many character types are needed 1-5
password_charset_required="3" # How many character types are needed 1-4
# Output options
displaydomains="off" # Wether to display unsecured domains or not
......@@ -146,10 +146,6 @@ if [ "${check_password_charset}" == "on" ]; then
if [[ "${mailpassword}" =~ [A-Z] ]]; then
passcharcomplexity=$((passcharcomplexity+1))
fi
# Check for accentuated chars
if [[ "${mailpassword}" =~ [À-Ÿà-ÿ] ]]; then
passcharcomplexity=$((passcharcomplexity+1))
fi
# Check for digit chars
if [[ "${mailpassword}" =~ [0-9] ]]; then
passcharcomplexity=$((passcharcomplexity+1))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment