ravenlp 18 년 전
부모
커밋
704872ef63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      classes/user.class.php

+ 1 - 1
classes/user.class.php 파일 보기

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