This page last changed on Sep 21, 2010 by klfoong.

As JIRA will depend on database whether to be case sensitive or insensitive, JIRA login for case sensitive database (eg. Postgres) will be case sensitive as well. To make the login page case insensitive, there are two files that need to be modified:

  • <jira-install>\atlassian-jira\WEB-INF\classes\templates\jira\dashboard\macros.vm which control the loginform at the dashboard page (eg. http://localhost:8085/secure/Dashboard.jspa). Modify the file as below
    <tr>
                <td valign="middle" align="center" colspan="2">
                    <input id="login" type="button" onClick="CheckForm();" value="$i18n.getText('common.concepts.login')" tabindex="4" />
                </td>
            </tr>
    
    		<script type="text/javascript">
    			function CheckForm() {
    
    				var Username = document.loginform.os_username.value;
    
    				document.loginform.os_username.value = Username.toLowerCase();
    
    				document.loginform.submit();
    			}
    		</script>
    
            #if ($allowPasswordReset == true)
            <tr>
                <td valign="middle" align="right" width="25%">&nbsp;</td>
                <td valign="top"><font size="1"><a href="${baseurl}/secure/ForgotPassword!default.jspa">$i18n.getText('common.concepts.forgotpassword')</a></font></td>
            </tr>
            #end
  • <jira-install>\atlassian-jira\includes\loginform.jsp which control the loginform in the middle (eg. http://localhost:8085/login.jsp?os_destination=%2Fbrowse%2FTST-1). Modify the file as below
    <tr>
    			<td valign="middle" align="center" colspan="2">
    				<input id="login" type="button" onClick="CheckForm();" value="<webwork:text name="'common.concepts.login'"/>" tabindex="4">
    			</td>
    		</tr>
    
    		<script type="text/javascript">
    			function CheckForm() {
    
    				var Username = document.loginform.os_username.value;
    
    				document.loginform.os_username.value = Username.toLowerCase();
    
    				document.loginform.submit();
    			}
    		</script>
    
    		<%
    			if (!ManagerFactory.getApplicationProperties().getOption(APKeys.JIRA_OPTION_USER_EXTERNALMGT) &&
                    !ManagerFactory.getApplicationProperties().getOption(APKeys.JIRA_OPTION_USER_PASSWORD_EXTERNALMGT)) {
    		%>
    		<tr>
    			<td valign="middle" align="right" width="25%">&nbsp;</td>
    			<td valign="top"><font size="1"><a href="<%= request.getContextPath() %>/secure/ForgotPassword!default.jspa"><webwork:text name="'common.concepts.forgotpassword'"/></a></font></td>
    		</tr>
    		<% } %>

    Restart JIRA after the modification. If it does not take effect, delete the work directory and restart JIRA.

Document generated by Confluence on Mar 27, 2011 18:51