ravenlp 18 lat temu
rodzic
commit
704872ef63
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      classes/user.class.php

+ 1 - 1
classes/user.class.php Wyświetl plik

46
 
46
 
47
 	function validateUser($username="", $password="") {
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
 			if ($this->contarRegistros()>0) {
50
 			if ($this->contarRegistros()>0) {
51
 				$register=$this->obtenerRegistro();
51
 				$register=$this->obtenerRegistro();
52
 				$_SESSION['user_id']=$register["id_user"];
52
 				$_SESSION['user_id']=$register["id_user"];