diff --git a/unl_theme/actions/login.php b/unl_theme/actions/login.php index 55a555666895f49a2a21f3b2a67d0582aea66a12..aa8937b67de52201513a3f6026692a41e1331dfc 100644 --- a/unl_theme/actions/login.php +++ b/unl_theme/actions/login.php @@ -51,8 +51,13 @@ forward('pg/admin/plugins'); } else - /* here's the modification we're making + /* here's the modifications we're making forward("pg/dashboard/"); */ + + $lastlogin_date = $_SESSION['user']->last_login; + if (!$lastlogin_date){ + forward('mod/profile/edit.php?firstlogin=yes'); + } forward("pg/profile/$username"); } } else {