Edgewall Software

Ticket #4034 (new enhancement)

Opened 2 years ago

Last modified 14 months ago

Numeric captcha '2*4 is?' to create new settings

Reported by: sergeych <sergeych@…> Owned by: jonas
Priority: normal Milestone: 2.0
Component: general Version: 0.10
Severity: minor Keywords:
Cc: sergeych@…

Description

Captcha asks question only if name and email are both empty, otherwise is skipped.

The patch for trunk/trac and trunk/templates. Error reporting should be improved - don't know what style to use to report wrong answer.

Attachments

numcaptcha1.patch (7.1 KB) - added by sergeych <sergeych@…> 2 years ago.
TracCaptcha-0.1.tar.gz (6.7 KB) - added by athomas 2 years ago.
Captcha plugin implemented with the IRequestFilter interface
numcaptcha2.patch (7.3 KB) - added by sergeych <sergeych@…> 2 years ago.
Num captcha integrated in Settings
spam-filter-captcha-fallback.diff (24.9 KB) - added by athomas 2 years ago.
Captcha plugin integrated into SpamFilter

Change History

Changed 2 years ago by sergeych <sergeych@…>

  Changed 2 years ago by sergeych <sergeych@…>

  • owner changed from jonas to anonymous
  • status changed from new to assigned
  • severity changed from normal to minor

Found a potential problem. I'm passig captcha answer between requests in the request handler instance var. I'm afrais thi is not good so I'll move it to the req.session very soon. I'm sorry.

BTW askimet just rejected my comments again :)

I think that it's time to add optional password to protect the account?

  Changed 2 years ago by athomas

Sergey, this can be entirely implemented as an IRequestFilter. I have a basic implementation that I'll attach for you to test.

Changed 2 years ago by athomas

Captcha plugin implemented with the IRequestFilter interface

  Changed 2 years ago by athomas

Give that a try. The user will be challenged with a Captcha the first time they POST a form. There is some dodgy hackery to achieve this, so it may not work in all cases. Seems to work with Wiki and ticket updates though.

The default captcha implementation is pretty much your one. An image captcha can be enabled by installing PIL and updating TracIni with:

[captcha]
captcha = ImageCaptcha

There's also a http://captcha.net implementation, but I haven't received the authentication tokens yet and so haven't been able to test it.

Changed 2 years ago by sergeych <sergeych@…>

Num captcha integrated in Settings

  Changed 2 years ago by sergeych <sergeych@…>

Well I suppose we use the simpler approach:

  • if the user has not set hist nick or email, he or she (or it) may not post anything, so one need to set it up in one's settings. AFAIK it is already done?
  • in the settnigs screen when person for the first time enters one's nick and/or password, ones is asked for captcha.
  • as long as the user has name and or email fields not blank the captcha on settings change is inactive.

  Changed 2 years ago by sergeych <sergeych@…>

Well the numcaptcha2.patch should work as described

  Changed 2 years ago by sergeych <sergeych@…>

  • cc sergeych@… added

  Changed 2 years ago by athomas

I've uploaded the plugin to TracHacks.

Changed 2 years ago by athomas

Captcha plugin integrated into SpamFilter

  Changed 2 years ago by cboos

  • milestone set to 2.0

#3391 and #4267 marked as duplicate.

Alec has started a branch for a captcha-enabled SpamFilter plugin here: source:/sandbox/spam-filter-captcha

follow-up: ↓ 10   Changed 16 months ago by asdf <asdf>

  • status changed from assigned to closed
  • resolution set to fixed

in reply to: ↑ 9   Changed 16 months ago by ecarter

  • status changed from closed to reopened
  • resolution fixed deleted

This is not a test system; please do not close tickets for no reason.

  Changed 14 months ago by eblot

  • owner changed from anonymous to jonas
  • status changed from reopened to new

(anonymous should not own a ticket)

Add/Change #4034 (Numeric captcha '2*4 is?' to create new settings)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.