summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user_installer.php
diff options
context:
space:
mode:
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");