@Component public class CsrfTokenDirective extends AbstractTemplateDirective
参数列表
admin
:是否后台,默认值false
:
返回结果
<input type="hidden" name="_csrf" value="<@tools.csrfToken/>"/>
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
CsrfTokenDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
boolean |
httpEnabled() |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, setName, setNamespace, setShortName
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
public boolean httpEnabled()
httpEnabled
在类中 BaseTemplateDirective