forked from leftypol/leftypol
main.js: generate captcha form id
This commit is contained in:
parent
f792470af7
commit
ebc0c54657
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ function onCaptchaLoadTurnstile(action) {
|
|||
{% endif %} // End if turnstile
|
||||
|
||||
function onCaptchaLoad(renderer) {
|
||||
// Initialize the form identifier with a random password.
|
||||
document.getElementById('captcha-form-id').value = generatePassword();
|
||||
|
||||
captcha_renderer = renderer;
|
||||
|
||||
let widgetId = renderer.applyOn('captcha-container', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue