From 4ac6eb5939c47fbba107f4353bbaa8e0d917a962 Mon Sep 17 00:00:00 2001 From: Matthew Juhl <mjuhl24@gmail.com> Date: Wed, 19 Aug 2009 20:23:50 +0000 Subject: [PATCH] Redirect to Edit Profile page on first login. --- unl_theme/actions/login.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/unl_theme/actions/login.php b/unl_theme/actions/login.php index 55a55566..aa8937b6 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 { -- GitLab