Prevent usage of dollar signs in admin passwords during setup

This commit is contained in:
Jason Ertel
2020-10-28 11:06:57 -04:00
parent b238c492e4
commit 348c2feee2
2 changed files with 2 additions and 2 deletions

View File

@@ -48,6 +48,6 @@ check_container() {
check_password() { check_password() {
local password=$1 local password=$1
echo "$password" | egrep -v "'|\"|\\\\" > /dev/null 2>&1 echo "$password" | egrep -v "'|\"|\\$|\\\\" > /dev/null 2>&1
return $? return $?
} }

View File

@@ -384,7 +384,7 @@ whiptail_invalid_pass_characters_warning() {
[ -n "$TESTING" ] && return [ -n "$TESTING" ] && return
whiptail --title "Security Onion Setup" --msgbox "Password is invalid. Please exclude single quotes, double quotes and backslashes from the password." 8 75 whiptail --title "Security Onion Setup" --msgbox "Password is invalid. Please exclude single quotes, double quotes, dollar signs, and backslashes from the password." 8 75
} }
whiptail_cur_close_days() { whiptail_cur_close_days() {