refactored WebGUI::Id to use new session api
This commit is contained in:
parent
2735385050
commit
925906ca7e
22 changed files with 130 additions and 44 deletions
|
|
@ -63,7 +63,7 @@ sub addFileFromCaptcha {
|
|||
my $challenge;
|
||||
srand;
|
||||
$challenge.= ('A'..'Z')[rand(26)] foreach (1..6);
|
||||
my $filename = "captcha.".WebGUI::Id::generate().".png";
|
||||
my $filename = "captcha.".$self->session->id->generate().".png";
|
||||
my $image = Image::Magick->new();
|
||||
$image->Set(size=>'105x26');
|
||||
$image->ReadImage('xc:white');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue