CodeIgniter Forums
Check a second field on shield login from another table - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Check a second field on shield login from another table (/showthread.php?tid=92266)



Check a second field on shield login from another table - 4usol - 01-02-2025

Hi,

i need to add a new field into the login authentification of shield.

I edit the login page and setup the routes to the own file. It works.
Here we have a new field named "mynewfield"


Now i need to check on login, if this field is inside another table (not users) and do some check arround it.

What will be the best way to do it, maybe without changing the core files?


Play around with the Validation.php brings no goal.


1) How (in wich file) i can add a validation function for the newfield, to get and check the values from the second-table?
2) How (in wich file) i cann add data-to the session after successful log in?

Thanks a lot.