Commit 99014e68 by Krunoslav Velfel

Update ControllerMain.java

parent 633c75bf
...@@ -54,7 +54,7 @@ public class ControllerMain extends ContentDelivery { ...@@ -54,7 +54,7 @@ public class ControllerMain extends ContentDelivery {
@RequestParam(name = "password") String p ) throws SQLException { @RequestParam(name = "password") String p ) throws SQLException {
int id; int id;
String role; String role;
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314"); connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement(); statement = connection.createStatement();
sql = "SELECT * FROM login WHERE username=\"" + u + "\" AND " + "password=\"" + p + "\""; sql = "SELECT * FROM login WHERE username=\"" + u + "\" AND " + "password=\"" + p + "\"";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment