Add user registration
This commit is contained in:
@ -13,7 +13,8 @@ use Catalyst qw/ConfigLoader
|
||||
Session
|
||||
Session::Store::FastMmap
|
||||
Session::State::Cookie
|
||||
AccessLog/,
|
||||
AccessLog
|
||||
Captcha/,
|
||||
'-Log=warn,fatal,error';
|
||||
|
||||
our $VERSION = '0.01';
|
||||
@ -56,6 +57,24 @@ __PACKAGE__->config(
|
||||
format => '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %[handle_time]',
|
||||
},
|
||||
},
|
||||
'Plugin::Captcha' => {
|
||||
session_name => 'hydra-captcha',
|
||||
new => {
|
||||
width => 270,
|
||||
height => 80,
|
||||
ptsize => 20,
|
||||
lines => 30,
|
||||
thickness => 1,
|
||||
rndmax => 5,
|
||||
scramble => 1,
|
||||
#send_ctobg => 1,
|
||||
bgcolor => '#ffffff',
|
||||
font => '/home/eelco/Dev/hydra/ttf/StayPuft.ttf',
|
||||
},
|
||||
create => [ qw/ttf circle/ ],
|
||||
particle => [ 3500 ],
|
||||
out => { force => 'jpeg' }
|
||||
},
|
||||
);
|
||||
|
||||
__PACKAGE__->setup();
|
||||
|
Reference in New Issue
Block a user