Remove the Can't access your account? link from Jira server

Still need help?

The Atlassian Community is here for you.

Ask the community

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 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.

Supported workaround for Confluence

Confluence - go to Admin-> Stylesheet (under Look and Feel) add the following to the css and save.

#forgot-password {
display:none;
}

You may see the same problem in Bamboo.

You may see the same problem in Bitbucket.

Last modified on Aug 11, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.