summaryrefslogtreecommitdiffstats
path: root/lib/class/user.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-30 17:17:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-10-30 17:17:27 +0000
commit0a08d312b72650162b1ef58cb1068634b7552964 (patch)
treef62bb3fcef8ba326b514f5b8cf3046935ba88859 /lib/class/user.class.php
parentdac46f0b6e8e4d5dff51b3f5b97f6cc5332f7b88 (diff)
downloadampache-0a08d312b72650162b1ef58cb1068634b7552964.tar.gz
ampache-0a08d312b72650162b1ef58cb1068634b7552964.tar.bz2
ampache-0a08d312b72650162b1ef58cb1068634b7552964.zip
move to sha256 for passwords API and Interface
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r--lib/class/user.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php
index 4d4d3956..ebb29d00 100644
--- a/lib/class/user.class.php
+++ b/lib/class/user.class.php
@@ -638,7 +638,7 @@ class User extends database_object {
*/
public function update_password($new_password) {
- $new_password = hash('sha1',$new_password);
+ $new_password = hash('sha256',$new_password);
$new_password = Dba::escape($new_password);
$sql = "UPDATE `user` SET `password`='$new_password' WHERE `id`='$this->id'";