Purpose

ucExpiredPasswordExit is called from an unsecured environment when the password for the user is determined to be expired. This is currently used to invoke the RequestPasswordDisplay class which allows the user’s password to be generated or modified.

Applies To

User Authentication Methods

Signature

public boolean ucExpiredPasswordExit( 
                   HttpServletRequest request,      // the servlet request
                   HttpServletResponse response,    // the servlet response
                   Connection dbconn,               //the database connection
                   SesameSession session) 
                       throws Exception             // current session

Notes

Return Boolean true if the expired password exit was handled. Return false if nothing is done – this will cause the calling class (LoginDisplay) to go to the Expired Password screen

Example

public boolean ucExpiredPasswordExit(
                HttpServletRequest request,               // the servlet request
                HttpServletResponse response,             // the servlet response
                Connection dbconn,                        // the database connection
                SesameSession session) throws Exception { // current session

        if (Z.config.getConfigValue("Random_Password_Pass".toUpperCase()) != null) {
            RequestPasswordDisplay.doDisplay(request, response, dbconn, session);
            return true;
        }
        return false;
    }