Check for empty fields and redirect

2009-02-27 Thread ross.hagg...@googlemail.com
Hi I have users and profiles tables and when a new member registers the profile table gets partially populated i.e. firstname, surname, email address. After account activation the member logs in for the first time. I want to redirect them to the profile home (edit action) to complete the form.

Re: Check for empty fields and redirect

2009-02-27 Thread rossjha
Think i've got it. Realised above wouldn't work anyway! user.last_login is null when the new user is created users_controller.php function login(){ $val = false; if(is_null($this-Auth-user('last_login'))){ $val = true;