Symantec IGA

 View Only
  • 1.  Customize CA IDM Pages

    Posted Jan 24, 2017 05:45 PM
      |   view attached

    Hello,

     

    We have made some changes on Login page od the CA Identity manager, but haven't found the way to remove some labels from it. For example, we are trying to remove the "Register Now" button and the "Don't have an account" label, we cannot remove it by hidding the class on css because it's the same of another elements. Is there a eay to edit that page directly? Or what can we do? Im attaching the picture of the page.

     

    Regards.

     

    Jose Pichardo



  • 2.  Re: Customize CA IDM Pages
    Best Answer

    Broadcom Employee
    Posted Jan 25, 2017 06:05 AM

    Hello,

    The login page display is handled by the login.jsp.
    Following are extract of the relevant lines handling the self registration part of the screen.

    /* First part : checking the environment settings */
    String selfRegistrationTaskTag = "selfregistration";
    String selfRegistrationLink = localizer.getLocalizedString("login.selfregistration");
    boolean hasSelfRegistration = false;
    if (envBaseURL != null && envPublicAlias != null) {
    }
    if (selfRegistrationTaskTag != null && selfRegistrationLink != null) {
    try {
    env.getAdminTaskProvider().findByTag(selfRegistrationTaskTag);
    hasSelfRegistration = true;
    }
    catch (NoSuchObjectException e) {
    }
    }
    }

    /* Second part : the displaying */
    <% if (hasSelfRegistration) { %>
    { xtype: 'spacer', height: 30},
    { xtype: 'displayfield',
    value: '<%= HtmlUtil.escapeQuotes(localizer.getLocalizedString("login.or")) %>',
    cls: 'ca-login-seperator', width: 250, name: 'or seperator'
    },
    { xtype: 'spacer', height: 30},
    {
    xtype: 'label',
    text: '<%= HtmlUtil.escapeQuotes(localizer.getLocalizedString("login.selfregistration")) %>',
    cls: 'ca-login-titletext'
    },
    { xtype: 'spacer', height: 20},
    {
    xtype: 'panel', width: 270, height: 100, layout: 'table', autoScroll: true,
    border: false, bodyStyle: 'background-color: fbfbfc;',
    layoutConfig: { columns: 3 },
    items: [
    {
    xtype: 'button',
    tabIndex: <%=index++ %>,
    text: '<%= HtmlUtil.escapeQuotes(localizer.getLocalizedString("login.registernow")) %>',
    handler: function(btn, evnt) {
    window.location = '<%= envBaseURL %>/<%= envPublicAlias %>/ui7/index.jsp?task.tag=<%= selfRegistrationTaskTag %>';
    }
    }
    ]
    },
    <%}%>

    As you can note it is based on the task tag and "login.selfregistration" localization string existence.
    So removing one of them will disable the self registration part.
    On my side, I just changed the “Self Registration” Admin Task Tag from “selfregistration” to “selfregistration2” and it does the trick.
    Best Regards

    Laurent



  • 3.  Re: Customize CA IDM Pages

    Posted Jan 25, 2017 08:23 AM

    Hello Laurent,

     

    Thanks for your response, it worked very well for me. That's exactly what i needed.

     

    Regards,

     

    Jose Pichardo



  • 4.  Re: Customize CA IDM Pages

    Broadcom Employee
    Posted May 17, 2018 04:26 AM

    Thank you! It works also for me.

     

    Regards.

     

    Martin