选择语言 :

Core_Auth

验证类

常量
Auth::DRIVER_DATABASE string(8) "Database"
Auth::DRIVER_FILE string(4) "File"
Auth::DEFAULT_CONFIG_NAME string(7) "default"

API - Core_Auth

author
呼吸二氧化碳 jonwang@myqee.com
category
MyQEE
package
System
subpackage
Core
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

Auth::instance( )

返回值
  • Auth

$this->__construct( )


$this->check_user( $username , $password )

检查用户名密码

参数列表

参数 类型 描述 默认值
$username string $username
$password string $password
返回值
  • Member

$this->get_member_by_username( $username )

根据用户名获取用户

参数列表

参数 类型 描述 默认值
$username string $username
返回值
  • 用户对象,不存在则返回false