Created
October 17, 2012 07:36
-
-
Save andyhawthorne/3904239 to your computer and use it in GitHub Desktop.
HMVC4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Admin_model extends CI_Model | |
| { | |
| function __construct() | |
| { | |
| parent:: __construct(); | |
| } | |
| public function verify_user($email, $password) | |
| { | |
| $q = $this->db->where('email_address', $email) | |
| ->where('password', sha1($password)) | |
| ->limit(1) | |
| ->get('users'); | |
| if ( $q->num_rows > 0 ) | |
| { | |
| return $q->row(); | |
| } | |
| return false; | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment