summaryrefslogtreecommitdiffstats
path: root/templates/show_account.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-26 07:43:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-26 07:43:18 +0000
commit392354df0a4f2c21aabad2f1b527448251a60f99 (patch)
treeab34820cef4990e4139326ccd2e507c5731d216c /templates/show_account.inc.php
parent975af37b254ebc74533f1562005dccf75ef0f021 (diff)
downloadampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.gz
ampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.bz2
ampache-392354df0a4f2c21aabad2f1b527448251a60f99.zip
switched to sha() password encryption not using sha2 because of limitations of amarok, also added some caching and fixed some misc bugs
Diffstat (limited to 'templates/show_account.inc.php')
-rw-r--r--templates/show_account.inc.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/show_account.inc.php b/templates/show_account.inc.php
index 256898f7..eb371443 100644
--- a/templates/show_account.inc.php
+++ b/templates/show_account.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -19,10 +19,9 @@
*/
// 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'); ?>
+<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_user" enctype="multipart/form-data">
<table class="tabledata">
<tr>
<td><?php echo _('Name'); ?>:</td>
@@ -58,8 +57,7 @@ $_SESSION['forms']['account'] = $form_string;
</table>
<div class="formValidation">
<input type="hidden" name="user_id" value="<?php echo scrub_out($client->id); ?>" />
- <input type="hidden" name="action" value="update_user" />
+ <?php echo Core::form_register('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'); ?>" />
</div>