ravenlp 17 years ago
parent
commit
704872ef63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/user.class.php

+ 1 - 1
classes/user.class.php View File

@@ -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"];