summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny/User.pm
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 12:57:38 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-04-24 12:57:38 -0700
commit4ac0fd01b73a0b718db3a756866fee121a1615f1 (patch)
treef8b1c3054b923526fbe46608ccf9d7f39538bcaa /libpiny/lib/Piny/User.pm
parentba8fd5e9907dd8e132e9c6fca006824907239636 (diff)
downloadpiny-code-4ac0fd01b73a0b718db3a756866fee121a1615f1.tar.gz
piny-code-4ac0fd01b73a0b718db3a756866fee121a1615f1.zip
Switching ikiwiki- username/group over to iki-; untested and requires a mass rebuildrepo
Diffstat (limited to 'libpiny/lib/Piny/User.pm')
-rw-r--r--libpiny/lib/Piny/User.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/User.pm b/libpiny/lib/Piny/User.pm
index 6267ecb..baae258 100644
--- a/libpiny/lib/Piny/User.pm
+++ b/libpiny/lib/Piny/User.pm
@@ -17,8 +17,8 @@ use Piny::Group;
subtype 'Username'
=> as 'Str'
- => where { $_ =~ /^(?!(git|ikiwiki)-)[a-zA-Z][a-zA-Z0-9_.-]*$/ }
- => message { if ( /^((?:git|ikiwiki)-|[^a-zA-Z])/ ) { "Usernames are not allowed to begin with $1" } elsif ( /([^a-zA-Z0-9_.-])/ ) { "Usernames are not allowed to contain $1" } else { "Invalid username" } }
+ => where { $_ =~ /^(?!(git|iki)-)[a-zA-Z][a-zA-Z0-9_.-]*$/ }
+ => message { if ( /^((?:git|iki)-|[^a-zA-Z])/ ) { "Usernames are not allowed to begin with $1" } elsif ( /([^a-zA-Z0-9_.-])/ ) { "Usernames are not allowed to contain $1" } else { "Invalid username" } }
;
# Attributes