CodeIgniter Forums
I've encountered an issue where the value is not being escaped. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: I've encountered an issue where the value is not being escaped. (/showthread.php?tid=87133)



I've encountered an issue where the value is not being escaped. - KayesPotrinak - 03-16-2023

I'm new to using CI4, and I've successfully customized the registration process to include the user's full name, following the instructions outlined in the docs at https://github.com/lonnieezell/myth-auth...tending.md. However, I've encountered an issue where the value is not being escaped. I'm wondering where I can add the escape function before the controller saves the data to the database.

Additionally, I've added a feature to select a role during registration, so that the user's account is added to the auth_groups_users table accordingly. I couldn't find any documentation on this, so I obtained the ID of the recently added user and added them to the appropriate group based on the inputted role. I added this code to the authController from Myth Auth. Is this the recommended approach? Ideally, I would like to add this code to my own controller, but I am new to this.


RE: I've encountered an issue where the value is not being escaped. - InsiteFX - 03-16-2023

I'm not sure if Myth/Auth is still being maintained or not users are using the new Sheild Auth now.

Lonnie would need to answer this one.