Class TfUser
Represents a user.
- TfUser uses TfMagicMethods
Package: user
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses: trait TfMagicMethods Prevents direct setting of properties / unlisted properties.
Located at trust_path/libraries/tuskfish/class/TfUser.php
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Uses: trait TfMagicMethods Prevents direct setting of properties / unlisted properties.
Located at trust_path/libraries/tuskfish/class/TfUser.php
Methods summary
public
|
|
public
mixed|null
|
|
public
|
|
public
|
|
public
|
#
setLoginErrors( integer $number_of_errors )
Set the number of times this user has failed to correctly enter their password. |
public
|
|
public
|
|
public
|
|
public
|
Methods used from TfMagicMethods
Properties summary
protected
|
$validator
|
|
protected
|
$id
|
|
protected
|
$adminEmail
|
|
protected
|
$passwordHash
|
|
protected
|
$userGroup
|
|
protected
|
$yubikeyId
|
|
protected
|
$yubikeyId2
|
|
protected
|
$loginErrors
|
Magic properties
public
|
$validator
Instance of the Tuskfish data validator class. |
public
integer
|
$id
ID of this user |
public
string
|
$adminEmail
email address of this user |
public
string
|
$passwordHash
|
public
integer
|
$userGroup
The privilege group this user belongs to (not implemented). |
public
string
|
$yubikeyId
ID of the primary Yubikey hardware authentication token for this account. |
public
string
|
$yubikeyId2
ID of the secondary Yubikey hardware authentication token for this account. |
public
string
|
$loginErrors
Number of times the user has failed to enter their password correctly. It is reset to zero on successful login. |