Skip to content

Commit be8fc8f

Browse files
committed
Cherry-picked from release/8.3.5
1 parent 0189e9a commit be8fc8f

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

myconext-gui/src/App.svelte

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
lang = "en";
5454
}
5555
I18n.changeLocale(lang);
56-
if (unprotectedRoutes.some(route => window.location.pathname.indexOf(route) > -1)) {
56+
const pathname = window.location.pathname;
57+
if (unprotectedRoutes.some(route => pathname.indexOf(route) > -1)) {
5758
loaded = true;
5859
} else {
5960
me()
@@ -77,7 +78,7 @@
7778
})
7879
.catch(e => {
7980
loaded = true;
80-
$redirectPath = window.location.pathname;
81+
$redirectPath = pathname;
8182
const urlSearchParams = new URLSearchParams(window.location.search);
8283
const logout = urlSearchParams.get("logout");
8384
const afterDelete = urlSearchParams.get("delete");
@@ -334,7 +335,7 @@
334335
<Route path="/services">
335336
<Home bookmark="services"/>
336337
</Route>
337-
<Route path="/landing" component={Landing}/>
338+
<Route path="/landing"><Landing/></Route>
338339
<Route path="/edit-name">
339340
<Home bookmark="edit-name"/>
340341
</Route>
@@ -365,10 +366,10 @@
365366
<Route path="/add-password">
366367
<Home bookmark="reset-password"/>
367368
</Route>
368-
<Route path="/install-app" component={InstallApp}/>
369-
<Route path="/update-email" component={ConfirmUpdateEmail}/>
370-
<Route path="/create-from-institution" component={CreateFromInstitution}/>
371-
<Route component={NotFound}/>
369+
<Route path="/install-app"><InstallApp/></Route>
370+
<Route path="/update-email"><ConfirmUpdateEmail/></Route>
371+
<Route path="/create-from-institution"><CreateFromInstitution/></Route>
372+
<Route><NotFound/></Route>
372373
</Router>
373374
</div>
374375
</div>
@@ -381,19 +382,20 @@
381382
<div class="content">
382383
<Router url="{url}">
383384
{#if $config.createEduIDInstitutionEnabled}
384-
<Route path="/create-from-institution" component={CreateFromInstitution}/>
385-
<Route path="/create-from-institution/eppn-already-linked" component={EppnAlreadyLinked}/>
386-
<Route path="/create-from-institution/attribute-missing" component={AttributeMissing}/>
387-
<Route path="/create-from-institution/expired" component={Expired}/>
385+
<Route path="/create-from-institution"><CreateFromInstitution/></Route>
386+
<Route path="/create-from-institution/eppn-already-linked"><EppnAlreadyLinked/></Route>
387+
<Route path="/create-from-institution/attribute-missing"><AttributeMissing/></Route>
388+
<Route path="/create-from-institution/expired"><Expired/></Route>
388389
<Route path="/create-from-institution/verify/:hash" let:params>
389390
<AwaitLinkFromInstitutionMail hash="{params.hash}"/>
390391
</Route>
391392
<Route path="/create-from-institution/link/:hash" let:params>
392393
<LinkFromInstitution hash="{params.hash}"/>
393394
</Route>
394395
{/if}
395-
<Route path="/landing" component={Landing}/>
396-
<Route component={NotFound}/>
396+
<Route path="/install-app"><InstallApp/></Route>
397+
<Route path="/landing"><Landing/></Route>
398+
<Route><NotFound/></Route>
397399
</Router>
398400
</div>
399401
</div>

myconext-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<dependency>
146146
<groupId>org.openconext</groupId>
147147
<artifactId>tiqr-java-connector</artifactId>
148-
<version>3.1.0</version>
148+
<version>3.1.4</version>
149149
</dependency>
150150
<dependency>
151151
<groupId>com.fasterxml.jackson.datatype</groupId>

myconext-server/src/main/java/myconext/tiqr/TiqrController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ private ResponseEntity<FinishEnrollment> doManualResponse(ManualResponse manualR
551551
public ResponseEntity<Object> doEnrollment(@ModelAttribute Registration registration,
552552
@RequestParam("enrollment_secret") String enrollmentSecret) {
553553
registration.setEnrollmentSecret(enrollmentSecret);
554+
LOG.info(String.format("Enrollment with registration %s ", registration));
554555
try {
555556
Registration savedRegistration = tiqrService.enrollData(registration);
556557
LOG.debug("Successful enrollment for user " + savedRegistration.getUserId());

0 commit comments

Comments
 (0)