From 048f2894cc92fe7c6c2f2dabdb8c52d31f4f14d3 Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Mon, 27 Dec 2010 04:48:36 -0800 Subject: Allow username validation to succeed. --- pinyadmin/sbin/newuser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pinyadmin/sbin/newuser') diff --git a/pinyadmin/sbin/newuser b/pinyadmin/sbin/newuser index c61cdec..ac3a51f 100755 --- a/pinyadmin/sbin/newuser +++ b/pinyadmin/sbin/newuser @@ -118,7 +118,7 @@ if ( scalar @ARGV == 3 and $ARGV[0] eq "--batch" ) { # don't need friendly error messages; whatever UI got us to this point *should* # have already caught these. exit 3 if ( not defined $email or $email eq "" ); -exit 3 if ( not defined $username eq "" ); +exit 3 if ( not defined $username or $username eq "" ); exit 3 if ( $username =~ /^(git|ikiwiki)-/ ); exit 3 if ( $username !~ /^[a-zA-Z0-9_.][a-zA-Z0-9_.-]+$/ ); exit 3 if ( not defined $password or $password eq "" ); -- cgit v1.2.3