\pm_Hook_Auth

Custom authentication mechanism

Summary

Methods
Properties
Constants
auth()
destroy()
isEnabled()
breakChainOnFailure()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

auth()

auth(string  $login, string  $password) : boolean

Check if credentials are valid or not

Parameters

string $login
string $password

Returns

boolean

destroy()

destroy() 

Handle session destroy event

isEnabled()

isEnabled() : boolean

Check if hook is enabled or not

Returns

boolean

breakChainOnFailure()

breakChainOnFailure() : boolean

If is true, then if the authentication fails, the next hook in the chain, if one exists, will not be executed.

Returns

boolean