summaryrefslogtreecommitdiffstats
path: root/templates/show_add_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_add_user.inc.php')
-rw-r--r--templates/show_add_user.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/show_add_user.inc.php b/templates/show_add_user.inc.php
index 0b3adcd3..dbe57aa4 100644
--- a/templates/show_add_user.inc.php
+++ b/templates/show_add_user.inc.php
@@ -19,6 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+$form_string = generate_password('32');
+$_SESSION['forms']['createuser'] = $form_string;
?>
<?php show_box_top(_('Adding a New User')); ?>
<?php Error::display('general'); ?>
@@ -81,6 +83,7 @@
</tr>
</table>
<div class="formValidation">
+ <input type="hidden" name="formkey" value="<?php echo $form_string; ?>" />
<input type="submit" value="<?php echo _('Add User'); ?>" />
</div>
</form>