Welcome Guest, Not a member yet? Register   Sign In
Working Example for Erkana Auth
#7

[eluser]Chris Newton[/eluser]
a little more of the way I do it;

Code:
function _check_password($password) {
         $this->load->helper('erkanaauth');
        $this->load->library('encrypt');
          if ($this->erkanaauth->try_login(array('user_name'=>$this->input->post('username')))) {
            if ($password==$this->encrypt->decode(getField('password'))){
                return TRUE;
            } else {
            $this->validation->set_message('_check_password', 'Incorrect password');
            return FALSE;
              }
          } else {
               $this->validation->set_message('_check_password', '');
              return FALSE;
          }
    }


Messages In This Thread
Working Example for Erkana Auth - by El Forum - 01-10-2008, 05:48 AM
Working Example for Erkana Auth - by El Forum - 01-10-2008, 01:16 PM
Working Example for Erkana Auth - by El Forum - 01-11-2008, 04:25 AM
Working Example for Erkana Auth - by El Forum - 01-11-2008, 01:36 PM
Working Example for Erkana Auth - by El Forum - 01-11-2008, 06:22 PM
Working Example for Erkana Auth - by El Forum - 01-12-2008, 12:26 AM
Working Example for Erkana Auth - by El Forum - 01-12-2008, 12:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB