code: public void onInit() {
  
          String authToken = m_params.getAuthToken();
          if (authToken != null) {
              m_ui.showForgotPasswordView(authToken);
          } else if (m_params.isReset()) {
              m_ui.showPasswordResetDialog();
          } else {
              boolean loggedIn = !A_CmsUI.getCmsObject().getRequestContext().getCurrentUser().isGuestUser();
              m_ui.setSelectableOrgUnits(CmsLoginHelper.getOrgUnitsForLoginDialog(A_CmsUI.getCmsObject(), null));
              if (loggedIn) {
                  if (m_params.isLogout()) {
                      logout();
                  } else {
                      m_ui.showAlreadyLoggedIn();
                  }
              } else {
                  m_ui.showLoginView(m_params.getOufqn());
              }
          }
  
      }
docs: Called on initialization.<p>