Ignore:
Timestamp:
7 Jun 2025, 02:06:59 (2 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/browser/interfaces.py

    r13089 r18083  
    9090class ICaptcha(Interface):
    9191
    92     def verify(request):
     92    def verify(request, action='submit'):
    9393        """Verify data entered in an HTTP request.
    9494
     
    9797        not.
    9898
     99        `action` is a simple string identifying the kind of operation
     100        performed in the form. ``login`` or ``enquiry`` for instance.
     101        Only used by recaptcha.
     102
    99103        If the solution could not be verified (this might also happen
    100104        because of technical reasons), the response might contain an
     
    102106        """
    103107
    104     def display(error_code=None):
     108    def display(error_code=None, action='submit'):
    105109        """Returns a piece of HTML code that displays the captcha.
    106110
     
    111115        therefore should not contain a ``<form>`` nor any submit
    112116        buttons.
     117
     118        See `verify` for infos about the `action` parameter.
    113119        """
    114120
Note: See TracChangeset for help on using the changeset viewer.