[eluser]Unknown[/eluser]
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
Code:
// signup
function signup()
{
loggedIn();
$this->load->view('partials/header');
$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);
}
$this->load->view('user/user_signup_view');
$this->load->view('partials/footer');
}
Could please someone give me a hint? or if anybody ran in to a similar problem and got it fixed, please provide some help