Changes between Version 7 and Version 8 of TracCaptchaPlugin
- Timestamp:
- Dec 2, 2015, 11:56:20 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCaptchaPlugin
v7 v8 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = !TracCaptcha3 = Embed captcha in Trac ticket pages 4 4 5 5 == Description … … 13 13 '''Generic Infrastructure:''' !TracCaptcha takes care about embedding a given captcha in the appropriate places which means that building a different captcha plugin is easy - you just have to build the captcha itself while this code will take care of the Trac integration. 14 14 15 The whole code is licensed under the veryliberal [http://en.wikipedia.org/wiki/MIT_License MIT license], so you can use the API in your own code without problems.15 The whole code is licensed under the liberal [http://en.wikipedia.org/wiki/MIT_License MIT license], so you can use the API in your own code without problems. 16 16 17 17 == See it in Action … … 21 21 The macro is also used on the '''[http://www.schwarz.eu/opensource/projects/trac_captcha/ project page]''', but please keep in mind that this is not an online demo, so do not create tickets to test the captcha! 22 22 23 == Bugs/Feature Requests 24 25 Existing bugs and feature requests for the !TracCaptcha plugin are stored on the [http://www.schwarz.eu/opensource/projects/trac_captcha/ project page]. Please do not file bugs in the trac-hacks bug tracker. 26 23 27 == Download 24 28 25 29 The latest sources are available from the [http://www.schwarz.eu/opensource/projects/trac_captcha/ project page] and [pypi:TracCaptcha]. 26 30 27 === Configuration 31 == Installation 32 33 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 34 35 Note the dependencies and compatibility: 36 * Python 2.3-2.7. 37 * [trac: Trac] 0.11, 0.12, 1.0. 38 * Optional: [http://www.pycrypto.org PyCrypto] for better security on Python 2.3 and 2.4. 39 40 == Configuration 28 41 29 42 Enable the macro in your `trac.ini`: 30 {{{ 31 #!ini 43 {{{#!ini 32 44 [components] 33 45 trac_captcha.* = enabled … … 36 48 37 49 [recaptcha] 38 # add here the keys youobtained from http://recaptcha.net/api/getkey50 # add the keys obtained from http://recaptcha.net/api/getkey 39 51 public_key = ... 40 52 private_key = ... 41 53 }}} 42 54 43 If you want to exempt some users from the captcha, grant them the `CAPTCHA_SKIP` privilege. TICKET_ADMINs and TRAC_ADMINs automatically have this privilege, so they will never see a captcha. Also a user only needs to solve the captcha once per modification, so you can click 'preview' as often as you like without having to solve the captcha all over again. 44 45 === Dependencies and Compatibility 46 47 * Python 2.3-2.7 48 * [trac: Trac] 0.11, 0.12, 1.0 49 * Optional: [http://www.pycrypto.org PyCrypto] for better security on Python 2.3 and 2.4 50 51 == Bugs/Feature Requests 52 53 Existing bugs and feature requests for the !TracCaptcha plugin are stored on the [http://www.schwarz.eu/opensource/projects/trac_captcha/ project page]. Please do not file bugs in the trac-hacks bug tracker. 55 If you want to exempt some users from the captcha, grant them the `CAPTCHA_SKIP` privilege. TICKET_ADMINs and TRAC_ADMINs automatically have this privilege, so they will never see a captcha. Also, a user only needs to solve the captcha once per modification, so you can click 'preview' as often as you like without having to solve the captcha all over again. 54 56 55 57 == Author/Contributors