Skip to content

worthmine/YAML-username-ban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

YAML-username-ban

in perl

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;

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published