Commit 5e54bf38 authored by Roque's avatar Roque

Allow special chars like @ and dots in user name

parent 7ce3755c
......@@ -194,7 +194,7 @@ function storeCredentials {
echo
echo "User:"
read -e USER
re='^[A-Za-z][-A-Za-z0-9_]*$'
re='^[A-Za-z][-A-Za-z0-9_.@]*$'
if ! [[ $USER =~ $re ]] ; then
echo
echo -e "${ORANGE}[ERROR] Invalid user name. Did enter an invalid character?"
......
......@@ -152,7 +152,7 @@ class DatasetUtils
puts
print "User:"
user = gets.chomp
if not /^[A-Za-z][-A-Za-z0-9_]*$/.match(user)
if not /^[A-Za-z][-A-Za-z0-9_.@]*$/.match(user)
puts
@logger.error("Invalid user name. Did enter an invalid character?", print=TRUE)
@logger.info("Please enter a valid user name.", print=TRUE)
......
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