aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/login.php15
-rw-r--r--languages/en.php2
2 files changed, 16 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index 82b4d10b4..d937dc2f7 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -39,7 +39,20 @@
forward($forward_url);
}
else
- forward("pg/dashboard/");
+ {
+ if (
+ (isadminloggedin()) &&
+ (!datalist_get('first_admin_login'))
+ )
+ {
+ system_message(elgg_echo('firstadminlogininstructions'));
+
+ datalist_set('first_admin_login', time());
+
+ forward('pg/admin/plugins');
+ } else
+ forward("pg/dashboard/");
+ }
} else {
$error_msg = elgg_echo('loginerror');
// figure out why the login failed
diff --git a/languages/en.php b/languages/en.php
index d49a2a364..6bf5a8df3 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -432,6 +432,8 @@ To remove a widget drag it back to the <b>Widget gallery</b>.",
'registerok' => "You have successfully registered for %s.",
'registerbad' => "Your registration was unsuccessful. The username may already exist, your passwords might not match, or your username or password may be too short.",
'registerdisabled' => "Registration has been disabled by the system administrator",
+
+ 'firstadminlogininstructions' => 'Your new Elgg site has been successfully installed and your administrator account created. You can now configure your site further by enabling various installed plugin tools.',
'registration:notemail' => 'The email address you provided does not appear to be a valid email address.',
'registration:userexists' => 'That username already exists',