Skip to content

Commit

Permalink
Merge pull request #12560 from Security-Onion-Solutions/jertel/email
Browse files Browse the repository at this point in the history
auto-convert email addresses to lowercase during setup
  • Loading branch information
jertel authored Mar 11, 2024
2 parents 4355d5b + cd28c00 commit 8c54a19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/so-whiptail
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,12 @@ whiptail_create_web_user() {
[ -n "$TESTING" ] && return

WEBUSER=$(whiptail --title "$whiptail_title" --inputbox \
"Please enter an email address to create an administrator account for the Security Onion Console (SOC) web interface.\n\nThis will also be used for Elasticsearch and Kibana." 12 60 "$1" 3>&1 1>&2 2>&3)
"Please enter an email address to create an administrator account for the Security Onion Console (SOC) web interface.\n\nThis will also be used for Elasticsearch and Kibana.\n\nMust only include letters, numbers, or + - _ % . @ characters. All capitalized letters will be converted to lowercase." 15 60 "$1" 3>&1 1>&2 2>&3)

local exitstatus=$?
whiptail_check_exitstatus $exitstatus

WEBUSER=${WEBUSER,,}
}

whiptail_create_web_user_password1() {
Expand Down

0 comments on commit 8c54a19

Please sign in to comment.