Class flUser
flUser Class
Class to provide user authentication and data access.
Copyright: Copyright (c) 2008 - 2016 fusionLib. All rights reserved.
Located at system/libs/User/flUser.php
Methods summary
public static
|
|
public static
integer
|
|
public static
|
#
setCookieInfo( string $cookieName, string $cookieDomain, string $cookiePath )
Set the user authentication cookie information. |
public static
string
|
|
public static
string
|
|
public static
string
|
|
public
|
#
__construct(
Construct the object. |
public
|
|
public
string
|
|
public
|
|
public
boolean
|
#
authenticate( string $username, string $password, boolean $rememberMe, string $usernameEmail = 'username' )
Authenticate the user with the given name and password. |
public
|
|
public
integer
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
string
|
|
protected
|
#
setFromResults( array $r, boolean $rememberMe )
Set the user information and authentication cookie from adapter returned results. |
Constants summary
integer |
AUTH_UNKNOWN
Authentication results. |
#
0
|
integer |
AUTH_OK
|
#
1
|
integer |
AUTH_BAD_USER_PASS
|
#
2
|
integer |
AUTH_FAILED
|
#
3
|
integer |
AUTH_IP_BLOCKED
|
#
4
|
integer |
AUTH_PENDING_ACTIVATION
|
#
5
|
integer |
AUTH_DISABLED
|
#
6
|
integer |
AUTH_BLOCKED
|
#
7
|
Properties summary
protected
|
$db
The database. |
|
protected
|
$request
The request object. |
|
protected
|
$response
The response object. |
|
protected static
string
|
$cookieName
The name of the cookie. |
#
'__userid'
|
protected static
string
|
$cookieDomain
The domain the cookie is available on. |
#
''
|
protected static
string
|
$cookiePath
The path for the cookie. |
#
'/'
|
protected
enum
|
$authState
Authentication status code. |
|
protected
integer
|
$uid
The user id. |
#
null
|
protected
string
|
$username
The username. |
#
null
|
protected
string
|
$displayName
The display name of the user. |
#
null
|
protected
string
|
$bio
The users bio. |
#
null
|
protected
string
|
$email
The users email address. |
#
null
|
protected
string
|
$timezone
The users timezone |
#
'UTC'
|
protected
string
|
$secret
Hashing secret. |
#
''
|
protected
boolean
|
$rememberMe
Flags if the user is being remembered between browser sessions. |
#
false
|
protected
|
$adapter
The user authentication adapter. |
#
null
|
protected
string
|
$authKey
The users private auth key. |
#
''
|
protected static
integer
|
$rememberMeTime
The time to remember a user for, default 1 year. |
#
31536000
|