|
@@ -46,7 +46,7 @@ class user extends Conexion_Mysql {
|
46
|
46
|
|
47
|
47
|
function validateUser($username="", $password="") {
|
48
|
48
|
|
49
|
|
- if ($this->ejecutarConsulta("SELECT id_user, login, password FROM ".$this->conf->tablePrefix."users WHERE login='".sql_escape($username)."' AND password='".$password."'")) {
|
|
49
|
+ if ($this->ejecutarConsulta("SELECT id_user, login, password FROM ".$this->conf->tablePrefix."users WHERE login='".$this->sql_escape($username)."' AND password='".$password."'")) {
|
50
|
50
|
if ($this->contarRegistros()>0) {
|
51
|
51
|
$register=$this->obtenerRegistro();
|
52
|
52
|
$_SESSION['user_id']=$register["id_user"];
|