Validating credentials and password check - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Validating credentials and password check (/showthread.php?tid=47638) |
Validating credentials and password check - El Forum - 12-15-2011 [eluser]Unknown[/eluser] I need to integrate my login validation with my form validation and database check--need some help with it: The validation function from my controller: Code: function credentials() My code for the model: Code: function validate() Issue #1: my login form won't accept an email address that's not in the database (so the validation on the email is working), but the login form will accept any passwords or even a blank field! I don't have any security on the passwords right now (SHA2, etc.), as I'm just trying to get my arms around the basics (later I plan to use bcrypt). I've been testing out solutions for a couple of hours with no luck. Issue #2: I have form validation fields that I would like to integrate with this function; I have the code for the form validation, but need help integrating it in with the functions above. Here's the code: Code: $this->load->library('form_validation'); Thanks in advance. |