We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148a7fb commit c230a96Copy full SHA for c230a96
App.java
@@ -7,10 +7,18 @@ public static void main(String[] args) {
7
staticFileLocation("/public");
8
CustomerDB c = new DBD();
9
AccountDB d = new DBD();
10
+ c.createNewCustomer("administrator");
11
get("/", (req, res) -> {
12
res.redirect("/login.html");
13
return " ";
14
});
15
+ post("/login", (req, res) -> {
16
+ String username = req.queryParams("username");
17
+ String password = req.queryParams("password");
18
19
+ if(username.equals("administrator") && password.equals("123")){
20
+ return " ";
21
+ }
22
+ });
23
}
24
Templates.java
@@ -0,0 +1,3 @@
1
+public class Templates {
2
+
3
+}
0 commit comments