summaryrefslogtreecommitdiff
path: root/installer/web.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-08 21:21:09 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-08 21:21:09 +0000
commit72c7fed975ce797da1f33ea82651c5a91ce3957e (patch)
tree4e84359029adcd40e31c3b20031c1096018e50aa /installer/web.php
parent7cbc904be722b493a060e2ad69849344124fbe91 (diff)
Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog. The text in there needs a little work but it's a start. In the process, re-build the install.sql using the scaffolding code.
Diffstat (limited to 'installer/web.php')
-rw-r--r--installer/web.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/installer/web.php b/installer/web.php
index 27124cd9..387a26bb 100644
--- a/installer/web.php
+++ b/installer/web.php
@@ -54,6 +54,7 @@ if (installer::already_installed()) {
} else {
try {
list ($user, $password) = installer::create_admin($config);
+ installer::create_admin_session($config);
$content = render("success.html.php", array("user" => $user, "password" => $password));
installer::create_private_key($config);