Skip to content

Commit

Permalink
Add form security tokens to prevent CSRF issues
Browse files Browse the repository at this point in the history
  • Loading branch information
giallu committed Jun 10, 2008
1 parent 0f7b2e7 commit c0f63f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions account_page.php
Expand Up @@ -93,6 +93,7 @@
<?php } ?>
<div align="center">
<form method="post" action="account_update.php">
<?php echo form_security_field( 'account_update' )?>
<table class="width75" cellspacing="1">

<!-- Headings -->
Expand Down
2 changes: 1 addition & 1 deletion account_update.php
Expand Up @@ -31,7 +31,7 @@

require_once( $t_core_path.'email_api.php' );

helper_ensure_post();
form_security_validate('account_update');

auth_ensure_user_authenticated();

Expand Down

0 comments on commit c0f63f9

Please sign in to comment.