|| IConst.VALUES.FALSE.equals(Configurator.getInstance().get(
IConst.CONFIG.ENABLE_EMAIL_CONFIRMATION))) { return (mapping
.findForward(IConst.TOKEN.DENIED)); }
HttpSession session = request.getSession();
UserDAO dao = UserDAO.getInstance();
PendingRegistrationForm pprForm = (PendingRegistrationForm) form;
try {
ProfileForm profile = new ProfileForm();
profile.setLogin(pprForm.getLogin());
profile.setEmail(pprForm.getEmail());
String password = dao.generatePassword();
profile.setPassword(password);
profile.setPassword2(password);
if (dao.checkPendingUser(pprForm.getLogin(), pprForm.getCode())
&& dao.addUser(profile)) {
dao.deletePendingUser(pprForm.getLogin());
User newuser = dao.getUser(profile.getLogin(), profile
.getPassword());
log(request, "logs.LOG7", newuser.getName());
if (newuser.getStatus() > 0) {
newuser.setIp(request.getRemoteAddr());