Project

General

Profile

« Previous | Next » 

Revision 49430

Added by Sofia Baltzi over 5 years ago

Update error messages

View differences:

modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/VerificationCodeServlet.java
41 41

  
42 42
        if (verificationActions.verificationEntryExists(formUsername, formVerificationCode)) {
43 43
            //TODO check expiration date if "now" is more than 24h from the date in DB return error message
44
            
44 45
            HttpSession session = request.getSession();
45 46
            session.setAttribute("username", formUsername);
46 47

  
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/RemindUsernameServlet.java
63 63
            }
64 64

  
65 65
        } catch (LDAPException ldape) {
66
            //TODO create error page
67 66
            logger.error("Could not find user with email " + formEmail, ldape);
68 67
            response.sendRedirect("./error.jsp");
69 68

  
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/ResetPasswordServlet.java
52 52
                logger.info("password resetted");
53 53

  
54 54
            } catch (Exception e) {
55
                logger.error("LDAP error" + e);
56
                //TODO
57
                //redirect to helpdesk error page
58
                //request.getSession().setAttribute("message", "Error resetting password.");
59
                //response.sendRedirect("./verify.jsp");
55
                logger.error("LDAP error in resetting password", e);
56
                response.sendRedirect("./error.jsp");
60 57
            }
61 58
        }
62 59

  

Also available in: Unified diff