Skip to content

Commit 93a8a6b

Browse files
committed
update middleware
1 parent 9358d6b commit 93a8a6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

helpers.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,18 @@ function tr_form_hidden_fields($method = 'POST', $prefix = 'tr')
534534
return \TypeRocket\Elements\BaseForm::hiddenInputs(...func_get_args());
535535
}
536536

537+
/**
538+
* Check Spam Honeypot
539+
*
540+
* @param null|string $name
541+
*
542+
* @return \TypeRocket\Html\Html
543+
*/
544+
function tr_honeypot_fields($name = null)
545+
{
546+
return \TypeRocket\Elements\BaseForm::honeypotInputs(...func_get_args());
547+
}
548+
537549
/**
538550
* @return \TypeRocket\Http\Cookie
539551
*/

0 commit comments

Comments
 (0)