ravenlp 16 年之前
父節點
當前提交
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"];