This commit is contained in:
parent
c07475164d
commit
65e32f13dd
|
@ -412,9 +412,9 @@ public class RepositoryServiceImpl implements RepositoryService {
|
||||||
HttpEntity<String> httpEntity = new HttpEntity<String>(json_repository, httpHeaders);
|
HttpEntity<String> httpEntity = new HttpEntity<String>(json_repository, httpHeaders);
|
||||||
ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(),HttpMethod.POST, httpEntity, ResponseEntity.class);
|
ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(),HttpMethod.POST, httpEntity, ResponseEntity.class);
|
||||||
|
|
||||||
if (responseEntity.getStatusCode().equals(HttpStatus.OK))
|
if (responseEntity.getStatusCode().equals(HttpStatus.OK)) {
|
||||||
emailUtils.sendUserRegistrationEmail(repository, authentication);
|
emailUtils.sendUserRegistrationEmail(repository, authentication);
|
||||||
else
|
}else
|
||||||
LOGGER.debug(responseEntity.getBody().toString());
|
LOGGER.debug(responseEntity.getBody().toString());
|
||||||
|
|
||||||
return repository;
|
return repository;
|
||||||
|
|
Loading…
Reference in New Issue