Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

konstantinov/Mojolicious-Plugin-CaptchaRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    Mojolicious::Plugin::CaptchaRenderer - captcha renderer for Mojolicious
    framework

VERSION
    0.02

SYNOPSIS
       # Mojolicious::Lite
       plugin captcha_renderer => { size => 20, color => 'blue', wave_amplitude => 4};
       get '/img/code.png' => sub {
          my $self = shift;
          $self->render_data($self->captcha('cool captcha code'));
       }
   
       # Mojolicious
       $self->plugin(captcha_renderer => { size => 20, color => 'blue', wave_amplitude => 4});
   
       package MyApp::MyController;
   
       sub my_action {
          my $self = shift;
          $self->render_data($self->captcha('cool captcha code'));
       }

OPTIONS
    size - font size. By default 60
    color - font color. By default black
    font - font name. By default undef
    bgcolor - captcha background color. By default white
    wave_amplitude - amplitude of wave in captcha. By default 7
    wave_length - length of wave in captcha. By dafault 80

SUPPORT
    *   Repository

        <http://github.com/konstantinov/Mojolicious-Plugin-CaptchaRenderer>

SEE ALSO
    Mojolicious, Mojolicious::Plugin, Mojolicious::Lite

COPYRIGHT & LICENSE
    Copyright 2010 Dmitry Konstantinov. All right reserved.

    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

About

Captcha plugin for Mojolicious framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages