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