diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu> | 2010-12-27 04:48:36 -0800 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu> | 2010-12-27 04:48:36 -0800 |
commit | 048f2894cc92fe7c6c2f2dabdb8c52d31f4f14d3 (patch) | |
tree | 651d8000857284ef2f3a0bd2d57f67f35653b629 /pinyadmin/sbin | |
parent | 875650426369fb2607b6179883141f3adfe42359 (diff) | |
download | piny-code-048f2894cc92fe7c6c2f2dabdb8c52d31f4f14d3.tar.gz piny-code-048f2894cc92fe7c6c2f2dabdb8c52d31f4f14d3.zip |
Allow username validation to succeed.
Diffstat (limited to 'pinyadmin/sbin')
-rwxr-xr-x | pinyadmin/sbin/newuser | 2 |
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 "" ); |