Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix Duo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 28, 2016
1 parent 839038b commit 201ca38
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -53,12 +53,15 @@ function tryToLogUser(\Psr\Http\Message\ServerRequestInterface &$request, \Psr\H

}

$test = $this->logUserFromLoginAction($request, $response, $isLast);
if(!$test){
$testResponse = $this->logUserFromLoginAction($request, $response, $isLast);
if(!$testResponse){
return false;
}
/** @var ContextInterface $ctx */
$ctx = $request->getAttribute("ctx");
if(!$ctx->hasUser()){
return false;
}
$uObject = $ctx->getUser();
$duoActive = $uObject->getMergedRole()->filterParameterValue("authfront.duosecurity", "DUO_AUTH_ACTIVE", AJXP_REPO_SCOPE_ALL, false);
if(!$duoActive){
Expand Down

0 comments on commit 201ca38

Please sign in to comment.