Remove the Can't access your account link from Bitbucket

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Summary

The steps here detail a workaround for hiding the forgot password link from the log-in page.

This can help to ensure that only Bitbucket administrators can reset users' passwords.

Environment

  • Bitbucket Server and Data Center (version 5+)

Solution

The steps below outline a customization to the base login screen functionality, and any issues that arise as a result of these changes are outside our standard Atlassian scope of support. Our support team's ability to assist will be limited to helping restore the default configuration of the login page.

Please apply the following configuration to your environment at your own risk.

The following change is made to a file in the $BITBUCKET_INSTALL directory, meaning that whenever you perform an upgrade - the Bitbucket installation directory's contents will have changed and you will need to re-apply this change.

  1. Make a copy of $BITBUCKET_INSTALL/app/static/bitbucket/internal/page/login/login.soy
  2. Look for the block of code that looks like
    • {call widget.aui.form.linkButton\}
           {param id: 'forgot' /}
           {param href: nav_password_reset() /}
           {param text: getText('bitbucket.web.login.forgot') /}
      {/call}
  3. Remove the entire call block above. 
    • (warning)Make sure it is the call block with bitbucket.web.login.forgot in it.
  4. Restart Bitbucket.

For other products see BambooConfluence, and Jira.

Last modified on Apr 20, 2021

Was this helpful?

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