Skip to content
Snippets Groups Projects
Commit 3d3735fb authored by Boris's avatar Boris
Browse files

Cookie : préparatifs aux correctionx

parent fd7f305e
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ public class StartServer {
public static boolean verificationSession(spark.Request req)
{
String c = req.cookie("session-id");
System.out.println(c);
if (c == null) return false;
else{
......@@ -97,7 +98,7 @@ public class StartServer {
String username = req.queryParams("userName");
String password = req.queryParams("password");
//List<ProfEntity> profs = Core.Prof.getAll();
ProfEntity found = Core.Prof.getLoginPair(username, password);
ProfEntity found = Core.Prof.getByLoginPair(username, password);
if (found != null) {
if (found.getPassword().compareTo(password) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment