log.info(LogManager.getHeader(context,
if ((!ldap_enabled)||(netid==null)||(netid.trim().equals(""))) {  log.info(LogManager.getHeader(context,
    private void processEnterEmail(Context context, HttpServletRequest request,            HttpServletResponse response) throws ServletException, IOException,            SQLException, AuthorizeException    {        String email = request.getParameter("email").toLowerCase().trim();        EPerson eperson = EPerson.findByEmail(context, email);        try        {            if (registering)            {                // If an already-active user is trying to register, inform them                // so                if ((eperson != null) && eperson.canLogIn())                {                    log.info(LogManager.getHeader(context,                            "already_registered", "email=" + email));                    JSPManager.showJSP(request, response,                            "/register/already-registered.jsp");                }                else                {                    // Find out from site authenticator whether this email can                    // self-register                    boolean canRegister = Authenticate.getSiteAuth()                            .canSelfRegister(context, request, email);                    if (canRegister)                    {                        // OK to register. Send token.                        log.info(LogManager.getHeader(context,                                "sendtoken_register", "email=" + email));                        AccountManager.sendRegistrationInfo(context, email);                        JSPManager.showJSP(request, response,                                "/register/registration-sent.jsp");                        // Context needs completing to write registration data                        context.complete();                    }                    else                    {                        JSPManager.showJSP(request, response,                                "/register/cannot-register.jsp");                    }                }            }            else            {                if (eperson == null)                {                    // Invalid email address                    log.info(LogManager.getHeader(context, "unknown_email",                            "email=" + email));                    request.setAttribute("retry", new Boolean(true));                    JSPManager.showJSP(request, response,                            "/register/forgot-password.jsp");                }                else if (!eperson.canLogIn())                {                    // Can't give new password to inactive user                    log.info(LogManager.getHeader(context,                            "unregistered_forgot_password", "email=" + email));                    JSPManager.showJSP(request, response,                            "/register/inactive-account.jsp");                }                else if (eperson.getRequireCertificate() && !registering)                {                    // User that requires certificate can't get password                    log.info(LogManager.getHeader(context,                            "certificate_user_forgot_password", "email="                                    + email));                    JSPManager.showJSP(request, response,                            "/error/require-certificate.jsp");                }                else                {                    // OK to send forgot pw token.                    log.info(LogManager.getHeader(context,                            "sendtoken_forgotpw", "email=" + email));                    AccountManager.sendForgotPasswordInfo(context, email);                    JSPManager.showJSP(request, response,                            "/register/password-token-sent.jsp");                    // Context needs completing to write registration data                    context.complete();                }            }        }        catch (AddressException ae)        {            // Malformed e-mail address            log.info(LogManager.getHeader(context, "bad_email", "email="                    + email));            request.setAttribute("retry", new Boolean(true));            if (registering)            {                JSPManager.showJSP(request, response, "/register/new-user.jsp");            }            else            {                JSPManager.showJSP(request, response,                        "/register/forgot-password.jsp");            }        }        catch (MessagingException me)        {            // Some other mailing error            log.info(LogManager.getHeader(context, "error_emailing", "email="                    + email), me);            JSPManager.showInternalError(request, response);        }    }