(config_decl)
| 25 | |
| 26 | @extend('ddserver.config:ConfigDeclaration') |
| 27 | def config_captcha(config_decl): |
| 28 | with config_decl.declare('captcha') as s: |
| 29 | s('enabled', |
| 30 | conv = bool, |
| 31 | default = False) |
| 32 | s('recaptcha_public_key', |
| 33 | conv = str, |
| 34 | default = '') |
| 35 | s('recaptcha_private_key', |
| 36 | conv = str, |
| 37 | default = '') |
| 38 | |
| 39 | |
| 40 |