php - Generate request token in contao on Maintenance Page -


i trying insert newsletter form maintenance page. using contao 3.5+ currently. have connected api on newsletter signup page trying send request token hidden field not being able generate on maintenance page specifically.

currently sending following

<input type="hidden" name="request_token" value="{{request_token}}" /> 

the insert tag {{request}} token should have generated random string in other pages. however, not seem work on maintenance page. so, contao developers out here. appreciate if me out here.

for newsletter using existing hc_newsletter plugin contao repo.

\controller::replaceinserttags(…) 

is executed in front end. use like

<input type="hidden" name="request_token" value="<?= request_token ?>"> 

instead (depending on how echoing input), i.e. echo request_token constant directly.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -