|
@@ 245-250 (lines=6) @@
|
| 242 |
|
if ($form->isSubmitted() && $form->isValid()) { |
| 243 |
|
$logger->notice(sprintf("RA(A) '%s' information amendment form submitted, processing", $identityId)); |
| 244 |
|
|
| 245 |
|
if ($this->get('ra.service.ra')->amendRegistrationAuthorityInformation($command)) { |
| 246 |
|
$this->addFlash('success', $this->get('translator')->trans('ra.management.amend_ra_info.info_amended')); |
| 247 |
|
|
| 248 |
|
$logger->notice(sprintf("RA(A) '%s' information successfully amended", $identityId)); |
| 249 |
|
return $this->redirectToRoute('ra_management_manage'); |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
$logger->notice(sprintf("Information of RA(A) '%s' failed to be amended, informing user", $identityId)); |
| 253 |
|
$this->addFlash('error', 'ra.management.amend_ra_info.error.middleware_command_failed'); |
|
@@ 294-299 (lines=6) @@
|
| 291 |
|
|
| 292 |
|
$logger->notice(sprintf('Confirmed retraction of RA credentials for identity "%s"', $identityId)); |
| 293 |
|
|
| 294 |
|
if ($this->get('ra.service.ra')->retractRegistrationAuthority($command)) { |
| 295 |
|
$logger->notice(sprintf('Registration authority for identity "%s" retracted', $identityId)); |
| 296 |
|
|
| 297 |
|
$this->addFlash('success', $this->get('translator')->trans('ra.management.retract_ra.success')); |
| 298 |
|
return $this->redirectToRoute('ra_management_manage'); |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
$logger->notice(sprintf( |
| 302 |
|
'Could not retract Registration Authority credentials for identity "%s"', |