XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
auth_xoops.php
Go to the documentation of this file.
1 <?php
21 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 
32 {
36  function XoopsAuthXoops(&$dao)
37  {
38  $this->_dao = $dao;
39  $this->auth_method = 'xoops';
40  }
41 
49  function authenticate($uname, $pwd = null)
50  {
51  $member_handler = &xoops_gethandler('member');
52  $user =& $member_handler->loginUser($uname, $pwd);
53  if ($user == false) {
54  $this->setErrors(1, _US_INCORRECTLOGIN);
55  }
56  return $user;
57  }
58 }
59 
60 ?>