trouble with a login page not inserting rows to a table on successful login
I am having trouble with a login page.
I have a site with 3 levels of security, (4 if you include superadmin)
Group admin, admin and member
I have created access rules and setup page access using the access pages manager, all working ok
The problem I am having is with the login page, not behaving as I expect.
My login page is based on the one created by PowerCMS builder, with the added user level, and also contains code to insert the memberid to the login table, whenever a member logs in successfully.
Regardless of who logs in, I want to redirect successful logins to the site home page, or to the previous url if they came via a link
I thought I had it working, but it seems the insert into the login table isn’t happening.