{include file='userNotice'}
-{include file='formErrorSecurityToken'}
-
{if $__wcf->user->disableAvatar}
<p class="error">{lang}wcf.user.avatar.error.disabled{/lang}</p>
{/if}
-{if $errorField}
- <p class="error">{lang}wcf.global.form.error{/lang}</p>
-{/if}
+{include file='formError'}
{if $success|isset}
<p class="success">{lang}wcf.global.success.edit{/lang}</p>
--- /dev/null
+{if $errorField}
+ {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
+ <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
+ {else}
+ <p class="error">{lang}wcf.global.form.error{/lang}</p>
+ {/if}
+{/if}
\ No newline at end of file
+++ /dev/null
-{if $errorField}
- {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
- <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
- {/if}
-{/if}
\ No newline at end of file
{include file='userNotice'}
+{include file='formError'}
+
{if $success|isset}
<p class="success">{lang}wcf.global.success.edit{/lang}</p>
{/if}
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
{if $category != 'general'}<input type="hidden" name="category" value="{$category}" />{/if}
+ {@SECURITY_TOKEN_INPUT_TAG}
</div>
</form>
public function validate() {
// call validate event
EventHandler::getInstance()->fireAction($this, 'validate');
+
+ if (!isset($_POST['t']) || !WCF::getSession()->checkSecurityToken($_POST['t'])) {
+ throw new UserInputException('__securityToken');
+ }
}
/**
* @subpackage form
* @category Community Framework
*/
-class AccountManagementForm extends AbstractSecureForm {
+class AccountManagementForm extends AbstractForm {
/**
* @see wcf\page\AbstractPage::$enableTracking
*/
* @subpackage form
* @category Community Framework
*/
-class AvatarEditForm extends AbstractSecureForm {
+class AvatarEditForm extends AbstractForm {
/**
* @see wcf\page\AbstractPage::$enableTracking
*/
<item name="wcf.global.form.error.lessThan"><![CDATA[Der eingebene Wert muss kleiner sein als {#$lessThan}.]]></item>
<item name="wcf.global.form.error.lessThan.javaScript"><![CDATA[{literal}Der eingebene Wert muss kleiner sein als {#$lessThan}.{/literal}]]></item>
<item name="wcf.global.form.error.multilingual"><![CDATA[Bitte füllen Sie dieses Eingabefeld für jede Sprache aus.]]></item>
+ <item name="wcf.global.form.error.securityToken"><![CDATA[Ihre Sitzung ist abgelaufen, bitte senden Sie das Formular erneut ab.]]></item>
</category>
<category name="wcf.imageViewer">
<item name="wcf.global.form.error.lessThan"><![CDATA[The entered value has to be less than {#$lessThan}.]]></item>
<item name="wcf.global.form.error.lessThan.javaScript"><![CDATA[{literal}The entered value has to be less than {#$lessThan}.{/literal}]]></item>
<item name="wcf.global.form.error.multilingual"><![CDATA[Please fill in this field for all languages.]]></item>
+ <item name="wcf.global.form.error.securityToken"><![CDATA[Your session has expired, please submit the form again.]]></item>
</category>
<category name="wcf.imageViewer">