mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Consolidate password validation messaging
This commit is contained in:
@@ -99,6 +99,15 @@ check_password() {
|
||||
return $?
|
||||
}
|
||||
|
||||
check_password_and_exit() {
|
||||
local password=$1
|
||||
if ! check_password "$password"; then
|
||||
echo "Password is invalid. Do not include single quotes, double quotes, dollar signs, and backslashes in the password."
|
||||
exit 2
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
check_elastic_license() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
Reference in New Issue
Block a user