Commit 187bb1d6 authored by Florian Azizian's avatar Florian Azizian

FEAT #10771 TIME 0:05 return login for status

parent 9912dbae
......@@ -732,13 +732,13 @@ class MaarchParapheurController
}
if (empty($curlResponse['response']['user'])) {
return $response->withJson(['connected' => false]);
return $response->withJson(['link' => '']);
}
} else {
return $response->withStatus(403)->withJson(['errors' => 'maarchParapheur is not enabled']);
}
return $response->withJson(['connected' => true]);
return $response->withJson(['link' => $curlResponse['response']['user']['login']]);
}
public static function sendSignaturesToMaarchParapheur(Request $request, Response $response, array $aArgs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment