PDA

View Full Version : lastLogin not working


mike372863
07-13-2010, 07:38 PM
Hi
I added a db field 'lastLogin", added it to login form as a hidden field and added server behavior but it wont updated db. Can you look at code and see what Im missing? the login works fine and so does registration.
thx
mike

Jason Byrnes
07-14-2010, 07:35 AM
the security assist authenticate user behaviors that are on the page are set to redirect to the welcome.php page after loging in. That redirect occurs before the update can happen. remove the redirect from both of the security assist authenticate user behaviors to allow the update record behavior to trigger.

mike372863
07-14-2010, 11:12 AM
crap! should have seen that. i just moved it up before the authenticate and it worked
THX!!

Jason Byrnes
07-14-2010, 11:49 AM
you're welcome.