Skip to content
Snippets Groups Projects
Commit 4ac6eb59 authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Redirect to Edit Profile page on first login.

parent 03f050d4
No related branches found
No related tags found
No related merge requests found
...@@ -51,8 +51,13 @@ ...@@ -51,8 +51,13 @@
forward('pg/admin/plugins'); forward('pg/admin/plugins');
} else } else
/* here's the modification we're making /* here's the modifications we're making
forward("pg/dashboard/"); */ forward("pg/dashboard/"); */
$lastlogin_date = $_SESSION['user']->last_login;
if (!$lastlogin_date){
forward('mod/profile/edit.php?firstlogin=yes');
}
forward("pg/profile/$username"); forward("pg/profile/$username");
} }
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment