\Pop\AuthAbstractAuth

Abstract auth class

Summary

Methods
Properties
Constants
getResult()
isValid()
getUsername()
getPassword()
setUsername()
setPassword()
authenticate()
No public properties found
NOT_VALID
VALID
verify()
$result
$username
$password
N/A
No private methods found
No private properties found
N/A

Constants

NOT_VALID

NOT_VALID

Constant for auth result

VALID

VALID

Properties

$result

$result : integer

Authentication result

Type

integer

$username

$username : string

Authentication username

Type

string

$password

$password : string

Authentication password

Type

string

Methods

getResult()

getResult() : integer

Get the authentication result

Returns

integer

isValid()

isValid() : boolean

Determine if the authentication attempt was valid

Returns

boolean

getUsername()

getUsername() : string

Get the username

Returns

string

getPassword()

getPassword() : string

Get the password

Returns

string

setUsername()

setUsername(string  $username) : \Pop\Auth\AbstractAuth

Set the username

Parameters

string $username

Returns

\Pop\Auth\AbstractAuth

setPassword()

setPassword(string  $password) : \Pop\Auth\AbstractAuth

Set the password

Parameters

string $password

Returns

\Pop\Auth\AbstractAuth

authenticate()

authenticate(string  $username, string  $password) 

Method to authenticate

Parameters

string $username
string $password

verify()

verify(string  $password, string  $hash) : \Pop\Auth\boolean;

Method to verify a password against a hash

Parameters

string $password
string $hash

Returns

\Pop\Auth\boolean;