CodeIgniter 4 Model Callbacks not hashing password before insert |
(01-02-2021, 09:24 PM)iRedds Wrote:(01-02-2021, 11:15 AM)josh2112o Wrote: Hi and thanks for the response. So, when you say the event triggers need to be called manually, does that mean I need to call them in the createUser() method like $this->db->beforeInsert($data)? Hi thanks again for the help. I implemented the first suggestion by calling $this->insert($data) in the createUser($data) method I had created in the UserModel class and it works as expected. The password was hashed automatically by the $beforeInsert method. Thanks again for the help. I also had posted this same issue over on StackOverflow. The post is here and if you are are active on that site and want to answer there, I can mark it as accepted over there as well. |
Messages In This Thread |
CodeIgniter 4 Model Callbacks not hashing password before insert - by josh2112o - 01-02-2021, 06:56 AM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by iRedds - 01-02-2021, 09:41 AM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by josh2112o - 01-02-2021, 11:15 AM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by iRedds - 01-02-2021, 09:24 PM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by josh2112o - 01-03-2021, 06:47 AM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by InsiteFX - 01-02-2021, 09:45 PM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by josh2112o - 01-03-2021, 06:49 AM
RE: CodeIgniter 4 Model Callbacks not hashing password before insert - by InsiteFX - 01-03-2021, 09:16 PM
|