26 $this->
messages = array(
'sufficient' => array(),
'required' => array());
52 $authenticated =
false;
61 $importance = $v->importance;
68 $authenticated =
true;
70 if ($importance ==
'required') {
71 $this->
messages[
'required'][] =
"$handler:failed";
74 $this->
messages[
'sufficient'][] =
"$handler:failed";
77 }
catch (Exception
$e) {
78 if ($importance ==
'required') {
79 $this->
messages[
'required'][] = $e->getMessage();
82 $this->
messages[
'sufficient'][] = $e->getMessage();
87 return $authenticated;
97 if (!empty($this->
messages[
'required'])) {
99 } elseif (!empty($this->
messages[
'sufficient'])) {
authenticate($credentials=array())
Authenticate a set of credentials against a policy This function will process all registered PAM hand...
__construct($policy)
\ElggPAM constructor
getFailureMessage()
Get a failure message to display to user.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.