-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Authentication
-
None
-
4
-
5
In some earlier versions of Bitbucket it was possible to edit Soy Templates to remove the "Can't access your account" link from the login page. On recent versions (9.3+, see here) the same approach is not viable for removing the newer "Can't log in?" link. Some customers would like to have access to this level of customization.
Workarounds
One possible workaround available is to use a reverse-proxy in front of the Bitbucket instance, and then configure your proxy to redirect or re-route all requests made to the /passwordreset context path to the appropriate help resource/documentation for your team.
Alternatively, if your team does not wish to run a proxy in front of your Bitbucket instance, another workaround is renaming or moving the following soy template on the server's filesystem, rendering the password reset page non-functional:
${BITBUCKET_INST}/app/static/bitbucket/internal/page/users/passwordreset.soy
Warning
This second approach will not remove the link or "Can't log in?" text itself, it will simply result in a 500 error being returned for the end user if they click on it and attempt to navigate to the password reset page. Furthermore, this change will be reverted any time that a version upgrade to Bitbucket is performed, as the changes to the install directory will restore the file and its name to the expected value/location.