Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 49c8f30

Browse files
author
vlad-ciucescu
authored
Merge pull request SORMAS-Foundation#3232 from hzi-braunschweig/feat-3201-climedo-auth
SORMAS-Foundation#3201 Automatically authenticate in CLIMEDO when opening the page for a registered patient
2 parents de90da5 + ff0d712 commit 49c8f30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ public void registerPatientDiaryPerson(PersonDto person) {
578578

579579
private void openPatientDiaryEnrollPage(String personUuid) {
580580
String url = FacadeProvider.getConfigFacade().getPatientDiaryConfig().getUrl();
581-
url += "/enroll?personUuid=" + personUuid;
581+
String authToken = externalJournalFacade.getPatientDiaryAuthToken();
582+
url += "/data?q=" + personUuid + "&token=" + authToken;
582583
UI.getCurrent().getPage().open(url, "_blank");
583584
}
584585

0 commit comments

Comments
 (0)