Welcome Guest, Not a member yet? Register   Sign In
user login not work
#2

[eluser]osci[/eluser]
Your code seems ok. Are you using global xss. Could it be that the password cause the error? Maybe try with
Code:
$this->db->where(‘user_password’,$this->input->post(‘user_password’),FALSE);

This is not very secure since it leaves the field unprotected.
You should btw use something like
Code:
$this->db->where(‘user_password’,md5($this->input->post(‘user_password’)),FALSE);
or any other encryption, so as not to store the real password in the db and also sanitize through enryption the data.

PS. please use the code tag to place code. [ code] [ /code] without the trailing space after [


Messages In This Thread
user login not work - by El Forum - 05-23-2011, 01:08 AM
user login not work - by El Forum - 05-23-2011, 03:14 AM
user login not work - by El Forum - 05-23-2011, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB