40 lines
1.3 KiB
Java
40 lines
1.3 KiB
Java
package it.acxent.cc.servlet;
|
|
|
|
import it.acxent.anag.Users;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.DBAdapter;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
public class ShowOrdineSvlt extends it.acxent.www.servlet.ShowOrdineSvlt {
|
|
private static final long serialVersionUID = 3253536598483259418L;
|
|
|
|
protected void otherCommands(HttpServletRequest req, HttpServletResponse res) {
|
|
super.otherCommands(req, res);
|
|
}
|
|
|
|
public void _vediOrdineCrypt(HttpServletRequest req, HttpServletResponse res) {
|
|
String l_id_userCript = getRequestParameter(req, "uc");
|
|
if (l_id_userCript.isEmpty()) {
|
|
super._vediOrdineCrypt(req, res);
|
|
} else {
|
|
String l_login = DBAdapter.deCrypt(l_id_userCript);
|
|
if (!l_login.isEmpty()) {
|
|
ApplParmFull apFull = getApFull(req);
|
|
Users user = new Users(apFull);
|
|
user.findByLogin(l_login);
|
|
if (user.isNoReg()) {
|
|
String ip = req.getRemoteHost();
|
|
user.setCurrentIp(ip);
|
|
req.getSession().setAttribute("utenteLogon", user);
|
|
req.getSession().setAttribute("loginUser_id", new Long(user.getId_users()));
|
|
super._vediOrdineCrypt(req, res);
|
|
} else {
|
|
search(req, res);
|
|
}
|
|
} else {
|
|
search(req, res);
|
|
}
|
|
}
|
|
}
|
|
}
|