Welcome Guest, Not a member yet? Register   Sign In
Password Trouble
#1

[eluser]$ilovephp[/eluser]
Last Friday, I posted a thread that has a problem with auto-encryption of password.

Here's the scenario:

I am working with INSERTION of user data into the database with fields username, email and password. To retrieve the values entered by the user i used the INPUT CLASS (inside controller):
Code:
$user_profile = array(
'username'=> $this->input->post('reg_username'),
'password' => $this->input->post('reg_password'),
'email' => $this->input->post('email')
);

and do the insertion at class that extends model:

Code:
function add_user($user_profile)
{
$this->db->insert('exp_jtb_users', $user_profile);
}

I did this code in the office, but the problem now is that the above code really inserted a record to the database, BUT, the password field (AND ONLY THE PASSWORD FIELD) is encrypted although i did not use an Encryption class nor attempted to encrypt the data.

To my surprise, i used the same code at home but it did not encrypt any field.

My question is, does it have to do with the server or the database? or it is more about on the codeigniter? Please help me out. Thanks and more power to CI developers!


Messages In This Thread
Password Trouble - by El Forum - 04-18-2010, 07:38 PM
Password Trouble - by El Forum - 04-18-2010, 09:35 PM
Password Trouble - by El Forum - 04-18-2010, 09:42 PM
Password Trouble - by El Forum - 04-18-2010, 11:45 PM
Password Trouble - by El Forum - 04-19-2010, 12:46 AM
Password Trouble - by El Forum - 04-19-2010, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB