Changeset 18183 for main/waeup.kofa/trunk/src/waeup/kofa/browser/captcha.py
- Timestamp:
- 23 Sep 2025, 16:45:23 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/captcha.py
r18173 r18183 120 120 ## 121 121 class StaticCaptcha(object): 122 """The StaticCaptcha always has the same solution: 'the-solution'.122 """The StaticCaptcha always has a random solution. 123 123 124 124 It is of no use for real world but for tests. In tests we cannot … … 153 153 """Display challenge and input field for solution as HTML. 154 154 """ 155 solution = random().randint(1000000000, 9999999999) 155 156 html = _( 156 157 u'<input type="hidden" name="challenge"' 157 u' value="the-solution" /><br />' 158 u'Type: %s<br />' 159 u'<input type="text" name="solution" value="the-solution"' 160 u' /><br />') 158 u' value="%s" />' 159 u'<input type="hidden" name="solution" value="%s"' 160 u' />' % (solution, solution)) 161 161 return html 162 162
Note: See TracChangeset for help on using the changeset viewer.
