aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/login.php15
1 files changed, 14 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