// TODO Auto-generated method stub
String logUNOrEM = request.getParameter("usernameORemail");
String logPassword = request.getParameter("psw");
boolean logIsEmail = request.getParameter("isEmail").equals("true") ? true
: false;
User temp;
JSONObject jObResponse = new JSONObject();
if (logIsEmail) {
temp = new User(logUNOrEM, "");
} else {
temp = new User("", logUNOrEM);
}
DatabaseAccess.connectToDB();
try {
if (temp.validate(logPassword)) {
jObResponse.accumulate("result", true);
} else {
jObResponse.accumulate("result", false);
}
} catch (JSONException e) {