Changeset 18071


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

Add captcha also to login page.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r18063 r18071  
    441.8.2.dev0 (unreleased)
    55=======================
     6
     7* Add captcha also to login page.
    68
    79* Allow lecturers to edit scores in state 'courses registered'
  • 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
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/loginpage.pt

    r16538 r18071  
    1717  <input class="btn btn-primary" type="submit" name="SUBMIT"
    1818    tal:attributes="value view/login_button" />
    19   <br /><br /><br />
     19  <br /><br />
     20  <div tal:content="structure view/captcha_code"></div>
     21  <br /><br />
    2022  <p  i18n:translate="login_trouble1">Don't forget to logout or exit your browser when you're done.
    2123    If you are having trouble logging in, make sure to enable  cookies in your web browser.
Note: See TracChangeset for help on using the changeset viewer.