[Bps-public-commit] r15316 - in RT-Extension-Captcha/lib: . RT/Extension

ruz at bestpractical.com ruz at bestpractical.com
Thu Aug 21 00:05:51 EDT 2008


Author: ruz
Date: Thu Aug 21 00:05:49 2008
New Revision: 15316

Added:
   RT-Extension-Captcha/lib/
   RT-Extension-Captcha/lib/RT/
   RT-Extension-Captcha/lib/RT/Extension/
   RT-Extension-Captcha/lib/RT/Extension/Captcha.pm

Log:
* add libs

Added: RT-Extension-Captcha/lib/RT/Extension/Captcha.pm
==============================================================================
--- (empty file)
+++ RT-Extension-Captcha/lib/RT/Extension/Captcha.pm	Thu Aug 21 00:05:49 2008
@@ -0,0 +1,41 @@
+package RT::Extension::Captcha;
+
+use 5.008003;
+use strict;
+use warnings;
+
+our $VERSION = '0.01';
+
+use GD::SecurityImage;
+
+=head1 NAME
+
+RT::Extension::Captcha - solve a CAPTCHA before some actions in RT
+
+=head1 DESCRIPTION
+
+This extension for RT 3.8.1 or newer. At this point only captcha is
+required for creating a ticket. Users who have right 'OnCaptchaOnCreate'
+will see no captchas.
+
+As GD's built in font is kinda small, we enabled ttf support and
+it's not configurable at this point. Either hack this extension
+or set an absolute path to a ttf font via 'ChartFont' option in
+the RT config.
+
+=cut
+
+use RT::Queue;
+$RT::Queue::RIGHTS->{'NoCaptchaOnCreate'} = "Don't ask user to solve a CAPTCHA on ticket create"; #loc_pair
+
+=head1 LICENSE
+
+Under the same terms as perl itself.
+
+=head1 AUTHOR
+
+Ruslan Zakirov E<lt>ruz at bestpractical.comE<gt>
+
+=cut
+
+1;



More information about the Bps-public-commit mailing list