use YAML::XS qw( LoadFile );
use Plack::Request;
my $req = Plack::Request->new($env);
my %param = %{ $req->body_parameters };
my $y = LoadFile( './common/static/ban.yaml' );
my @ban = @{ $y->{'ban'} };
die 'そのユニークユーザーIDはシステムにより予約されています。 username=' . $param{'username'}
if $param{'username'} and grep{ lc( $param{'username'} ) eq lc($_) } @ban;
-
Notifications
You must be signed in to change notification settings - Fork 0
worthmine/YAML-username-ban
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published