Skip to content

Commit 0fb8ef4

Browse files
committed
Update README to reflect new HMAC configuration options and optional overrides
1 parent 459587b commit 0fb8ef4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ Add a config file:
4444
```yml
4545
altcha:
4646
enable: true
47-
hmacSignature: '%env(APP_SECRET)%'
47+
hmacSignature: '%env(APP_SECRET)%' # Replaces deprecated hmacKey
4848
hmacAlgorithm: 'SHA-256'
49+
hmacKeySignature: ~ # Optional signature key
4950
cost: 5000
5051
counter_min: 5000
5152
counter_max: 10000
@@ -123,6 +124,11 @@ class ContactType extends AbstractType
123124
'floating' => true,
124125
'hide_logo' => false,
125126
'hide_footer' => false,
127+
// Optional: override global config
128+
// 'cost' => 5000,
129+
// 'timeout' => 30.0,
130+
// 'counter_min' => 5000,
131+
// 'counter_max' => 10000,
126132
])
127133
->add('submit', SubmitType::class)
128134
;

0 commit comments

Comments
 (0)