summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user_installer.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-11 20:02:43 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-11 20:02:43 +0000
commitf5d092b4848e07c2fff453b7723266e8aab4463c (patch)
tree496d6ceb4f0799e5c0a5725f01aa86a500430c53 /modules/user/helpers/user_installer.php
parenta15c7cb11fbf3a45492cf7cb0a04823d4321f3d5 (diff)
Correct some missing properties and change the user_model to have a set function so the password is hashed as part of the model
Diffstat (limited to 'modules/user/helpers/user_installer.php')
-rw-r--r--modules/user/helpers/user_installer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index e0f7312e..391915a3 100644
--- a/modules/user/helpers/user_installer.php
+++ b/modules/user/helpers/user_installer.php
@@ -68,10 +68,10 @@ class user_installer {
$user = ORM::factory("user")->where("display_name", "admin")->find();
$user->name = "admin";
$user->display_name = "Gallery Administrator";
- // @todo create a helper function to encrypt the password.
- $user->password = user_password::hash_password("admin");
+ $user->password = "admin";
$user->save();
$id = $user->id;
+
$db->query("UPDATE `items` SET `owner_id` = $id WHERE `owner_id` IS NULL");
foreach (array("administrator", "registered") as $group_name) {