From: Alexander Ebert Date: Thu, 3 Oct 2013 10:37:17 +0000 (+0200) Subject: CSRF protection for forms X-Git-Tag: 2.0.0_Beta_11~63^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee629b229f7cda133ed1187d52a2709758c4b201;p=GitHub%2FWoltLab%2FWCF.git CSRF protection for forms --- diff --git a/com.woltlab.wcf/templates/accountManagement.tpl b/com.woltlab.wcf/templates/accountManagement.tpl index 8056baf774..a090721e04 100644 --- a/com.woltlab.wcf/templates/accountManagement.tpl +++ b/com.woltlab.wcf/templates/accountManagement.tpl @@ -18,9 +18,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}

{lang}wcf.user.accountManagement.warning{/lang}

@@ -289,8 +287,8 @@
- {@SECURITY_TOKEN_INPUT_TAG} + {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/disclaimer.tpl b/com.woltlab.wcf/templates/disclaimer.tpl index 5cdb0bc74e..22e25911ec 100644 --- a/com.woltlab.wcf/templates/disclaimer.tpl +++ b/com.woltlab.wcf/templates/disclaimer.tpl @@ -16,9 +16,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -43,6 +41,7 @@ {/if} diff --git a/com.woltlab.wcf/templates/emailActivation.tpl b/com.woltlab.wcf/templates/emailActivation.tpl index e0383c1df8..da398c23c6 100644 --- a/com.woltlab.wcf/templates/emailActivation.tpl +++ b/com.woltlab.wcf/templates/emailActivation.tpl @@ -16,9 +16,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -79,6 +77,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/emailNewActivationCode.tpl b/com.woltlab.wcf/templates/emailNewActivationCode.tpl index 46546ead4d..2958ac6c85 100644 --- a/com.woltlab.wcf/templates/emailNewActivationCode.tpl +++ b/com.woltlab.wcf/templates/emailNewActivationCode.tpl @@ -15,9 +15,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -78,6 +76,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/login.tpl b/com.woltlab.wcf/templates/login.tpl index eb51d0154a..e91de28363 100644 --- a/com.woltlab.wcf/templates/login.tpl +++ b/com.woltlab.wcf/templates/login.tpl @@ -24,9 +24,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -153,6 +151,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/lostPassword.tpl b/com.woltlab.wcf/templates/lostPassword.tpl index fe8b3a341d..319a90b458 100644 --- a/com.woltlab.wcf/templates/lostPassword.tpl +++ b/com.woltlab.wcf/templates/lostPassword.tpl @@ -26,9 +26,7 @@

{lang}wcf.user.lostPassword.description{/lang}

-{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -88,6 +86,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/mail.tpl b/com.woltlab.wcf/templates/mail.tpl index 65d218a17a..5b994a8210 100644 --- a/com.woltlab.wcf/templates/mail.tpl +++ b/com.woltlab.wcf/templates/mail.tpl @@ -15,9 +15,7 @@ {include file='userNotice'} -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} +{include file='formError'}
{hascontent} @@ -110,6 +108,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/membersList.tpl b/com.woltlab.wcf/templates/membersList.tpl index ceed61997d..f9ddba4d31 100644 --- a/com.woltlab.wcf/templates/membersList.tpl +++ b/com.woltlab.wcf/templates/membersList.tpl @@ -92,6 +92,7 @@
+ {@SECURITY_TOKEN_INPUT_TAG}
diff --git a/com.woltlab.wcf/templates/moderationActivation.tpl b/com.woltlab.wcf/templates/moderationActivation.tpl index 3c861e4fe1..95811ab723 100644 --- a/com.woltlab.wcf/templates/moderationActivation.tpl +++ b/com.woltlab.wcf/templates/moderationActivation.tpl @@ -30,6 +30,8 @@ {include file='userNotice'} +{include file='formError'} +