Closed ghost closed 5 years ago
I took a crack at it and changed line 39-44 to
$recaptcha_html = $modx->getChunk($tpl, array(
'site_key' => $site_key,
'lang' => $lang,
'form_id' => $form_id,
'btn_text' => $btn_text ? $btn_text : 'Login'
));
which works for me, I don't have the ability to do a proper pr from work though I figured it out from my work computer.
I've run into this issue where i have 18 some odd templates for each of the times I use this snippet just to change the value that shows up on the button. Is there a way (or could one be made) to optionally pass in a value for the button otherwise use 'submit'? It would save a bunch of templates for me personally