Skip to content

Commit

Permalink
Fix directus#1380 [Set default requires2FA flag]
Browse files Browse the repository at this point in the history
  • Loading branch information
binal-7span committed Nov 4, 2019
1 parent 72afacc commit d6810d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/ProjectHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public function __invoke(Request $request, Response $response)
{
/** @var Acl $acl */
$acl = $this->container->get('acl');

$service = new ServerService($this->container);
if ($acl->getUserId()) {
$responseData = $service->findAllInfo(false);
} else {
$responseData = [
'data' => [
'api' => $service->getPublicInfo()
'api' => array_merge(['requires2FA' => false],$service->getPublicInfo())
]
];
}
Expand Down

0 comments on commit d6810d7

Please sign in to comment.