Révision ddbedad3
Ajouté par Florent Torregrosa il y a presque 10 ans
bin/d7-reset-variables.sh | ||
---|---|---|
27 | 27 |
drush -yq vset dblog_row_limit 1000 |
28 | 28 |
drush -yq vset cron_safe_threshold 0 |
29 | 29 |
|
30 |
###### Hidden captcha
|
|
30 |
###### Captcha
|
|
31 | 31 |
drush -yq en hidden_captcha |
32 |
# Log wrong answers. |
|
33 |
drush -yq vset captcha_log_wrong_responses 1 |
|
32 |
# Do not log wrong answers. |
|
33 |
drush -yq vset captcha_enable_stats 0 |
|
34 |
drush -yq vset captcha_log_wrong_responses 0 |
|
34 | 35 |
# Use hidden captcha for all forms. |
35 | 36 |
drush -yq sqlq --db-prefix "UPDATE {captcha_points} SET module = 'hidden_captcha', captcha_type = 'Hidden CAPTCHA' WHERE module is NULL;" |
36 | 37 |
# Flush captcha cache. |
37 | 38 |
drush -yq vdel captcha_placement_map_cache |
38 |
# Randomely generate a math question as the label of the hidden captcha field.
|
|
39 |
# Randomly generate a math question as the label of the hidden captcha field. |
|
39 | 40 |
drush -yq vset hidden_captcha_label "$random_1 + $random_2" |
40 | 41 |
|
41 | 42 |
|
Formats disponibles : Unified diff
#397 : Do not log captcha wrong response and disable captcha stats.