Skip to content
Discussion options

You must be logged in to vote

Found the code that verifies the email address (saltstack/default/salt/common/tools/sbin/so-user)
Looks like Onion is only allowing alphanumeric in email addresses even though according to RFC 3696 apostrophes are allowed in email addresses...if used before the '@'

function validateEmail() {
  email=$1
  if [[ ! "$email" =~ ^[[:alnum:]._%+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}$ ]]; then
    fail "Email address is invalid"
  fi

  if [[ "$email" =~ [A-Z] ]]; then
    fail "Email addresses cannot contain uppercase letters"
  fi
}
```

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sdtbone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant