Abstract authentication base.
| package | XenForo_Authentication |
|---|
authenticate(integer $userId, string $password) : bool
integerThe user ID we're trying to authenticate as. This may not be needed, but can be used to "upgrade" auth schemes.
stringPassword (plain text)
boolTrue if the authentication is successfulcreate(string $class) : \XenForo_Authentication_Abstract
The class must exist or be autoloadable or an exception will be thrown.
stringClass to load
createDefault() : \XenForo_Authentication_Abstract
generate(string $password) : false | string
stringPassword (plain text)
falsestringThe result will be stored in a binary resultgenerateSalt($length) : string
stringgetClassName() : string
stringhasPassword() : 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.
booleansetData(string $data)
stringBinary data from the database
DEFAULT_SALT_LENGTH : integer