What authentication system for my... web apps? |
[eluser]jbrozz[/eluser]
this is a first step
Quote:class CI_Auth {
function auth($username, $password, $table = 'users', $remember = null)
{
$sql = "SELECT id, username, password FROM ".$table."
WHERE username='".trim($username)."'
AND password='".trim($password)."' LIMIT 1";
$res = $this->db->query($sql);
if($res == true) return true;
else return false;
}
}
post in /system/library/
|
Messages In This Thread |
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:12 AM
|