public static function login()
{
$email = Input::post('email');
$password = sha1(Input::post('password')); // Get SHA1 Password
$query = DB::select('id','username','email','group_id')
->from('users')
->where_open()
->where('email', $email)
->and_where('password', $password)
->where_close()
->limit(1)
->execute()
->as_array();
if(count($query) > 0) return $query;
return FALSE;
}
It looks like you're new here. If you want to get involved, click one of these buttons!