Welcome Guest, Not a member yet? Register   Sign In
Codeigniter ion auth password problem

Hello all.

I ran in to a problem with ion auth what i cant really solve.

I use sha1 encryption, salt is turnd off in config.

Checked if the input post posts the correct input and it does.

I type in for password 12345, and that should be 8cb2237d0679ca88db6464eac60da96345513964 whit sha1 encryption.

But when it sends it into the database its totally different every time, like it would create a random strung each time

Here is my signup function

// signup
   function signup()


         $this->form_validation->set_rules('username', 'Username', 'required');
         $this->form_validation->set_rules('password', 'Password', 'required|min_length[4]');
         $this->form_validation->set_rules('repassword', 'Retype Your Password', 'required|min_length[4]|matches[password]');

         if($this->form_validation->run() !== FALSE)
            $username = $this->input->post('username');
            $password = $this->input->post('password');
             $email = $this->input->post('email');
            $additional_data = array(
               'name' => $this->input->post('name')
         $group = array('2');
         $this->ion_auth->register($username, $password, $email, $additional_data, $group);


Could please someone give me a hint? or if anybody ran in to a similar problem and got it fixed, please provide some help

Theme © iAndrew 2016 - Forum software by © MyBB