File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,7 @@ public function addUser(Request $request): JsonResponse
386386
387387 if ($ errorMessage === []) {
388388 if (!$ newUser ->createUser ($ userName , $ userPassword )) {
389+ var_dump ($ errorMessage );
389390 $ errorMessage [] = $ newUser ->error ();
390391 return $ this ->json ($ errorMessage , Response::HTTP_BAD_REQUEST );
391392 }
@@ -400,6 +401,8 @@ public function addUser(Request $request): JsonResponse
400401 } catch (Exception |TransportExceptionInterface ) {
401402 /* @mago-expect lint:no-empty-catch-clause */
402403 }
404+
405+ return $ this ->json (['success ' => Translation::get (key: 'ad_adus_suc ' )], Response::HTTP_OK );
403406 }
404407
405408 return $ this ->json ($ errorMessage , Response::HTTP_BAD_REQUEST );
You can’t perform that action at this time.
0 commit comments