summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpinyadmin/sbin/newuser2
1 files changed, 1 insertions, 1 deletions
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 "" );