Skip to content

Commit

Permalink
Merge branch 'master' into 2.42-DHIS2-18368_3
Browse files Browse the repository at this point in the history
  • Loading branch information
d-bernat authored Dec 23, 2024
2 parents ad4b4a8 + 59dd5fd commit 9614438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
</div>
<img
class="logo"
src="/dhis-web-commons/security/logo_front.png"
src="./dhis-web-commons/security/logo_front.png"
alt="DHIS2 Logo"
/>
</div>
Expand Down Expand Up @@ -328,7 +328,7 @@ <h1>Log in</h1>
// Fetch the login configuration dynamically
async function fetchLoginConfig() {
try {
const response = await fetch("../api/loginConfig");
const response = await fetch("./api/loginConfig");

if (!response.ok) {
let errorMessage = "Login failed: " + response.status;
Expand All @@ -351,7 +351,7 @@ <h1>Log in</h1>
config.applicationDescription || "Welcome to the DHIS2 application";
if (config.countryFlag) {
const flag = document.getElementById("flag");
flag.src = `/dhis-web-commons/flags/${config.countryFlag}.png`;
flag.src = `./dhis-web-commons/flags/${config.countryFlag}.png`;
flag.style.display = "block";
}
} catch (error) {
Expand Down Expand Up @@ -400,7 +400,7 @@ <h1>Log in</h1>
}

try {
const response = await fetch("../api/auth/login", {
const response = await fetch("./api/auth/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -425,7 +425,7 @@ <h1>Log in</h1>
const user = await response.json();

if (user.loginStatus === "SUCCESS") {
const redirectUrl = user.redirectUrl || "/";
const redirectUrl = user.redirectUrl || "./";
window.location.href = redirectUrl;
} else {
throw new Error("Login failed. Status: " + user.loginStatus);
Expand Down
2 changes: 1 addition & 1 deletion dhis-2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<spring-security-jwt.version>1.1.1.RELEASE</spring-security-jwt.version>
<bcprov-jdk15on.version>1.70</bcprov-jdk15on.version>
<jasypt.version>1.9.3</jasypt.version>
<nimbus.jose.jwt.version>9.47</nimbus.jose.jwt.version>
<nimbus.jose.jwt.version>9.48</nimbus.jose.jwt.version>
<com.google.zxing.core.version>3.5.3</com.google.zxing.core.version>
<com.google.zxing.javase.version>3.5.3</com.google.zxing.javase.version>

Expand Down

0 comments on commit 9614438

Please sign in to comment.