Skip to content

Commit

Permalink
Update to 2024.4: Changed authentication page
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed Apr 9, 2024
1 parent 7bca4ec commit 60a29b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>live.nerotv</groupId>
<artifactId>ZyneonAuth</artifactId>
<version>2024.2.2</version>
<version>2024.4</version>
<packaging>jar</packaging>

<name>ZyneonAuth</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void handle(HttpExchange exchange) {
}

try {
byte[] bytes = "<p>Authentication process started. You can now close this page.</p>".getBytes();
byte[] bytes = "<!DOCTYPE html><html></head><meta http-equiv='refresh' content='0; URL=https://zyneonstudios.github.io/nexus-website/app/authenticated.html'><meta http-equiv='refresh' content='1; URL=https://zyneonstudios.github.io/nexus-website/app/authenticated.html'><script>window.location.href='https://zyneonstudios.github.io/nexus-website/app/authenticated.html';</script></head><body><iframe src='https://zyneonstudios.github.io/nexus-website/app/authenticated.html' style='border: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;'><a href='https://zyneonstudios.github.io/nexus-website/app/authenticated.html'>Click here to get redirected</a></iframe></body></html>".getBytes();
exchange.sendResponseHeaders(200, bytes.length);
exchange.getResponseBody().write(bytes);
exchange.getResponseBody().flush();
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/live/nerotv/zyneon/auth/ZyneonAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

import java.util.HashMap;

@SuppressWarnings("unused")
public class ZyneonAuth {

public static void main(String[] args) {
getAuthInfos();
}

public static HashMap<AuthInfo,String> getAuthInfos() {
//CREATING MAP
HashMap<AuthInfo,String> map = new HashMap<>();
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/authPage.html

This file was deleted.

0 comments on commit 60a29b3

Please sign in to comment.