summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user_installer.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-11 04:57:49 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-11 04:57:49 +0000
commit62bb63a70d35feb4517afa29f83cf2f5d7fd4be9 (patch)
treea47a31aeb2f9f2c4ff9aec3f569a21fd319d77e5 /modules/user/helpers/user_installer.php
parentdb6917b58b0533214560ffef7334f4dc5e9a7cc7 (diff)
New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration.
Diffstat (limited to 'modules/user/helpers/user_installer.php')
-rw-r--r--modules/user/helpers/user_installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index bb6f1ceb..e0f7312e 100644
--- a/modules/user/helpers/user_installer.php
+++ b/modules/user/helpers/user_installer.php
@@ -69,7 +69,7 @@ class user_installer {
$user->name = "admin";
$user->display_name = "Gallery Administrator";
// @todo create a helper function to encrypt the password.
- $user->password = "admin";
+ $user->password = user_password::hash_password("admin");
$user->save();
$id = $user->id;
$db->query("UPDATE `items` SET `owner_id` = $id WHERE `owner_id` IS NULL");