authenticate()
create()
createDefault()
generate()
generateSalt()
getClassName()
hasPassword()
setData()
_createHash()
_newPassword()
_setupHash()
$_data
$_hashFunc
DEFAULT_SALT_LENGTH
Core authentication method.
package | XenForo_Authentication |
---|
authenticate(integer $userId, string $password) : bool
see | \global\XenForo_Authentication_Abstract::authenticate() |
---|
integer
The user ID we're trying to authenticate as. This may not be needed, but can be used to "upgrade" auth schemes.
string
Password (plain text)
bool
True if the authentication is successfulcreate(string $class) : \XenForo_Authentication_Abstract
The class must exist or be autoloadable or an exception will be thrown.
inherited_from | \XenForo_Authentication_Abstract::create() |
---|
string
Class to load
createDefault() : \XenForo_Authentication_Abstract
inherited_from | \XenForo_Authentication_Abstract::createDefault() |
---|
generate(string $password) : false | string
see | \global\XenForo_Authentication_Abstract::generate() |
---|
string
Password (plain text)
false
string
The result will be stored in a binary resultgenerateSalt($length) : string
inherited_from | \XenForo_Authentication_Abstract::generateSalt() |
---|
string
getClassName() : string
inherited_from | \XenForo_Authentication_Abstract::getClassName() |
---|
string
hasPassword() : boolean
A user can switch away from this auth by requesting a password be emailed to him/her. An example of this situation is FB registrations.
inherited_from | \XenForo_Authentication_Abstract::hasPassword() |
---|
boolean
setData(string $data)
string
Binary data from the database
_createHash($data) : string
string
string
The new hashed string_newPassword($password, $salt)
_setupHash()
$_data : array
$_hashFunc : string
DEFAULT_SALT_LENGTH : integer
inherited_from | \XenForo_Authentication_Abstract::DEFAULT_SALT_LENGTH |
---|