Commit dd20c701 authored by Robin's avatar Robin
Browse files

Improve password lengh severity calculation

parent 13d84754
......@@ -81,7 +81,7 @@ if [ "${check_password_length}" == "on" ]; then
if [ "${#mailpassword}" -lt "${password_length_required}" ]; then
test="fail"
reason="only ${#mailpassword}/${password_length_required} chars"
severity="$(( ${password_length_required}/${#mailpassword} ))"
severity="$(( ${password_length_required} - ${#mailpassword} ))"
else
test="pass"
fi
......
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