Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]davidjlynch[/eluser]
Hi Ben,

I am new to codeigniter, great work, just one thing, I cannot seem to get the email_check to return error message 'Email already in use' or something similar using the below;

Code:
$this->form_validation->set_rules('email', 'Email Address', 'required|valid_email|callback_email_check');

/
Code:
**
     * Checks email
     *
     * @return bool
     * @author Mathew
     **/
    public function email_check($email = '')
    {
        if (empty($email))
        {
        return FALSE;
        }
        return $this->db->where('email', $email)
            ->where($this->ion_auth->_extra_where)
            ->count_all_results($this->tables['users']) > 0;
    }

also tried using you callback function on page 25 of this post, any help would be greatly appreciated.

Thanks in advance


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 05-12-2010, 02:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB