DatabaseStrategy
Extends AbstractUsernamePasswordAuthenticationStrategyJoomla Framework Database Strategy Authentication class
since |
1.1.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Constructor.
__construct(\Joomla\Authentication\Password\HandlerInterface passwordHandler = null) : mixed
since |
1.2.0 |
---|
Arguments
- passwordHandler
\Joomla\Authentication\Password\HandlerInterface
The password handler.
Response
mixed
authenticate
Attempt to authenticate the username and password pair.
authenticate() : string|bool
since |
1.1.0 |
---|
Response
string|bool
A string containing a username if authentication is successful, false otherwise.
doAuthenticate
Attempt to authenticate the username and password pair.
doAuthenticate(string username, string password) : string|bool
since |
1.1.0 |
---|
Arguments
- username
string
The username to authenticate.- password
string
The password to attempt authentication with.
Response
string|bool
A string containing a username if authentication is successful, false otherwise.
getHashedPassword
Retrieve the hashed password for the specified user.
getHashedPassword(string username) : string|bool
since |
1.1.0 |
---|
Arguments
- username
string
Username to lookup.
Response
string|bool
Hashed password on success or boolean false on failure.
getResult
Get the status of the last authentication attempt.
getResult() : int
since |
1.1.0 |
---|
Response
int
Authentication class constant result.
verifyPassword
Attempt to verify the username and password pair.
verifyPassword(string username, string password, string hashedPassword) : bool
since |
1.1.0 |
---|
Arguments
- username
string
The username to authenticate.- password
string
The password to attempt authentication with.- hashedPassword
string
The hashed password to attempt authentication against.
Response
bool
Properties
db
DatabaseInterface object
since |
1.1.0 |
---|
Type(s)
\Joomla\Database\DatabaseInterface
dbOptions
Database connection options
since |
1.1.0 |
---|
Type(s)
array
input
The Input object
since |
1.1.0 |
---|
Type(s)
\Joomla\Input\Input
passwordHandler
The password handler to validate the password against.
since |
1.2.0 |
---|
Type(s)
\Joomla\Authentication\Password\HandlerInterface
status
The last authentication status.
since |
1.1.0 |
---|
Type(s)
int