Ignore:
Timestamp:
7 Jun 2025, 02:06:59 (4 days ago)
Author:
uli
Message:

Support Google Recaptcha v3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-recaptcha/src/waeup/kofa/interfaces.py

    r17787 r18083  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
     18import decimal
    1819import os
    1920import re
     
    14181419        )
    14191420
     1421
     1422class 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
    14201451#
    14211452# Asynchronous job handling and related
Note: See TracChangeset for help on using the changeset viewer.