Minahito
minah****@users*****
2005年 6月 28日 (火) 00:27:39 JST
Index: xoops2jp/html/kernel/member.php diff -u xoops2jp/html/kernel/member.php:1.2.10.1 xoops2jp/html/kernel/member.php:1.2.10.2 --- xoops2jp/html/kernel/member.php:1.2.10.1 Mon Jun 27 23:45:31 2005 +++ xoops2jp/html/kernel/member.php Tue Jun 28 00:27:39 2005 @@ -1,5 +1,5 @@ <?php -// $Id: member.php,v 1.2.10.1 2005/06/27 14:45:31 minahito Exp $ +// $Id: member.php,v 1.2.10.2 2005/06/27 15:27:39 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -324,7 +324,7 @@ function &loginUser($uname, $pwd) { $criteria = new CriteriaCompo(new CriteriaString('uname', $uname)); - $criteria->add(new Criteria('pass', md5($pwd))); + $criteria->add(new CriteriaString('pass', md5($pwd))); $user =& $this->_uHandler->getObjects($criteria, false); if (!$user || count($user) != 1) { return false; @@ -341,8 +341,8 @@ */ function &loginUserMd5($uname, $md5pwd) { - $criteria = new CriteriaCompo(new Criteria('uname', $uname)); - $criteria->add(new Criteria('pass', $md5pwd)); + $criteria = new CriteriaCompo(new CriteriaString('uname', $uname)); + $criteria->add(new CriteriaString('pass', $md5pwd)); $user =& $this->_uHandler->getObjects($criteria, false); if (!$user || count($user) != 1) { return false;