XOOPS  2.6.0
Xoops.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
12 namespace Xoops\Auth;
13 
15 
27 class Xoops extends AuthAbstract
28 {
34  public function __construct(Connection $dao = null)
35  {
36  $this->dao = $dao;
37  $this->auth_method = 'xoops';
38  }
39 
48  public function authenticate($uname, $pwd = null)
49  {
51  $member_handler = $xoops->getHandlerMember();
52  $user = false;
53  if ($member_handler) {
54  $user = $member_handler->loginUser($uname, $pwd);
55  if ($user == false) {
57  }
58  }
59 
60  return $user;
61  }
62 }
authenticate($uname, $pwd=null)
Definition: Xoops.php:48
const E_INCORRECT_LOGIN
Definition: en_US.php:332
if($uname== ''||$pass== '') $member_handler
Definition: checklogin.php:44
static getInstance()
Definition: Xoops.php:160
$user
Definition: Xoops.php:58
setErrors($err_no, $err_str)
$xoops
Definition: admin.php:25
$uname
Definition: checklogin.php:37
__construct(Connection $dao=null)
Definition: Xoops.php:34