if (!changepassw) {
oUser.activate();
oUser.save(getSession());
DAO.log(User.class, "ACTIVATE USER", AtrilEvent.Level.INFO, email+";"+id+";"+uid);
}
CustomerAccount oCacc = new CustomerAccount(getSession(), oUser);
Employee oEmpl = new Employee();
String sEmpl = null;
if (oEmpl.exists(getSession(), "employee_uuid", oUser.getNickName())!=null)
sEmpl = oUser.getNickName();
setSessionAttributes(oUser, oCacc, oCacc.taxpayers(getSession()).byDefault(getSession(),oUser),sEmpl);
hasorders = (oCacc.orders(getSession()).count()>0);
disconnect();
} catch (AuthenticationException acpt) {
DAO.log(User.class, "ACTIVATE USER", AtrilEvent.Level.WARNING, email+";"+id+";"+uid);
Log.out.warn("ActivateUser.form() "+acpt.getClass().getName()+" "+acpt.getMessage(), acpt);
return new RedirectResolution("/error.jsp?e=systemsecurity");