summaryrefslogtreecommitdiffstats
path: root/templates/show_account.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 03:20:00 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 03:20:00 +0000
commitdb47bcb6c018fecae71b8b7120c70d7ef9c7bcf6 (patch)
treed017e40d77c0d580aa6091dceabec7fd919a83c2 /templates/show_account.inc.php
parent20c3dc0fd1993b36a8ff3467fbc8c4f30c59588d (diff)
downloadampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.tar.gz
ampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.tar.bz2
ampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.zip
fixed play all artist, play all artist random, and account updating from user preferences
Diffstat (limited to 'templates/show_account.inc.php')
-rw-r--r--templates/show_account.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/show_account.inc.php b/templates/show_account.inc.php
index fc380c6f..8b179a78 100644
--- a/templates/show_account.inc.php
+++ b/templates/show_account.inc.php
@@ -18,7 +18,11 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+// Because this is a reset of the persons password make the form a little more secure
+$form_string = generate_password('32');
+$_SESSION['forms']['account'] = $form_string;
?>
+<?php Error::display('general'); ?>
<table class="tabledata">
<tr>
<td><?php echo _('Name'); ?>:</td>
@@ -56,6 +60,7 @@
<input type="hidden" name="user_id" value="<?php echo scrub_out($client->id); ?>" />
<input type="hidden" name="action" value="update_user" />
<input type="hidden" name="tab" value="<?php echo scrub_out($_REQUEST['tab']); ?>" />
+ <input type="hidden" name="form_string" value="<?php echo $form_string; ?>" />
<input class="button" type="submit" value="<?php echo _('Update Account'); ?>" />
</td>
</tr>