- Timestamp:
- 7 Jun 2025, 02:06:59 (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-recaptcha/src/waeup/kofa/interfaces.py
r17787 r18083 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 import decimal 18 19 import os 19 20 import re … … 1418 1419 ) 1419 1420 1421 1422 class IReCaptchaConfig(Interface): 1423 """The configuration values needed by Google recaptcha. 1424 """ 1425 public_key = schema.TextLine( 1426 title = u"Public site key", 1427 description = u"Public sitekey, provided by Google", 1428 required = True, 1429 ) 1430 private_key = schema.TextLine( 1431 title = u"Private site key", 1432 description = u"Private sitekey, provided by Google", 1433 required = True, 1434 ) 1435 hostname = schema.TextLine( 1436 title = u"Hostname", 1437 description = u"Hostname we use when we require captchas" 1438 u"i.e. our own domain", 1439 required = True, 1440 default = u"localhost", 1441 ) 1442 min_score = schema.Decimal( 1443 title = u"Minimum score", 1444 description = u"Minimum score required to qualify as non-bot " 1445 u"(range: 0.0 to 1.0)", 1446 required = True, 1447 default = decimal.Decimal("0.5") 1448 ) 1449 1450 1420 1451 # 1421 1452 # Asynchronous job handling and related
Note: See TracChangeset for help on using the changeset viewer.