]>
iEval git - plack-app-gruntmaster.git/blob - lib/Plack/App/Gruntmaster/Auth.pm
1 package Plack
::App
::Gruntmaster
::Auth
;
5 our $VERSION = '5999.000_001';
7 use parent qw
/Plack::Middleware::Auth::Complex/;
10 my ($self, $req) = @_;
11 return $self->bad_request('Parameter too long') if grep { length > 100 } $req->parameters->values;
13 $self->SUPER::call_register
($req);
17 my ($self, $parms) = @_;
18 my %parms = $parms->flatten;
19 my $sth = $self->{dbh
}->prepare_cached('INSERT INTO users (id, name, email, phone, town, university, country, level, passphrase) VALUES (?,?,?,?,?,?,?,?,?)');
20 $sth->execute(@parms{qw
/username name email phone town university country level/}, $self->hash_passphrase($parms{password
}));
This page took 0.040215 seconds and 4 git commands to generate.