Elgg
Version 3.0
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Updates the advanced settings for the primary site object. | |
Functions | |
register_pam_handler ($handler, $importance="sufficient", $policy="user") | |
Register a PAM handler. More... | |
unregister_pam_handler ($handler, $policy="user") | |
Unregisters a PAM handler. More... | |
register_pam_handler | ( | $handler, | |
$importance = "sufficient" , |
|||
$policy = "user" |
|||
) |
Register a PAM handler.
A PAM handler should return true if the authentication attempt passed. For a failure, return false or throw an exception. Returning nothing indicates that the handler wants to be skipped.
Note, $handler must be string callback (not an array/Closure).
string | $handler | Callable global handler function in the format () pam_handler($credentials = null); |
string | $importance | The importance - "sufficient" (default) or "required" |
string | $policy | The policy type, default is "user" |