Remove the Can't access your account? link from Jira server
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
The information in this page relates to customizations in Jira. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page as customizations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.
Also, please be aware that customizations done by directly modifying files are not included in the upgrade process. These modifications will need to be reapplied manually on the upgraded instance.
Symptom
An administrator might want to hide the forgot password link from the log-in page to ensure that only JIRA administrator that could reset users password without enabling "External User Management" option.
Resolution
Turning off or removing JIRA "Can't access your account?" display of the link in the Log In page – see Configuring Jira application options for more details:
Navigate to System-> General Configuration -> Edit top right
Turn external management ON to remove the display of “Can’t access your account?”
So users can't try to change their password on login page.
Workaround
There are times that you can't turn on the external management feature and still need to hide the "Can't access your account?" link.
In that case you may want to use CSS to hide the HTML elements – see How to hide elements in Jira Server and Data Center using CSS or JavaScript for more details about it.
The following CSS code hides the links from both the login gadget and the login page – the Visibility Level must be set to Public:
<style type="text/css">
/* Hide the "Can't access your account?" link from the login.jsp page */
a#forgotpassword[href*="ForgotLogin"] {
display: none !important;
}
/* Hide the "Can't access your account?" link from the login gadget */
a#login-form-cancel[href*="ForgotLogin"] {
display: none !important;
}
</style>
You might see the same problem on Confluence.