Ignore:
Timestamp:
10 May 2025, 17:09:00 (10 hours ago)
Author:
Henrik Bettermann
Message:

Add captcha also to login page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r18001 r18071  
    365365                        'and authentication (login) temporarily disabled.'),
    366366                       type='warning')
     367        # Handle captcha
     368        self.captcha = getUtility(ICaptchaManager).getCaptcha()
     369        self.captcha_result = self.captcha.verify(self.request)
     370        self.captcha_code = self.captcha.display(self.captcha_result.error_code)
    367371        self.camefrom = camefrom
    368372        # Prefill form with URL params
Note: See TracChangeset for help on using the changeset viewer.