From 62bb63a70d35feb4517afa29f83cf2f5d7fd4be9 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 11 Nov 2008 04:57:49 +0000 Subject: New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration. --- modules/user/helpers/user_installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/helpers/user_installer.php') 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"); -- cgit v1.2.3