Skip to content
Snippets Groups Projects
Commit 187bb1d6 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #10771 TIME 0:05 return login for status

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