How to Prevent Password Autocompletion in Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

The following browsers have removed support for the use of autocomplete="off"

  • Apple Safari 6.1.6 (OS X 10.7)
  • Google Chrome 41+
  • Microsoft Edge
  • Microsoft Internet Explorer 11+
  • Mozilla Firefox 30+

As this is a design choice made by the browser's authors, there is no current work around available.

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

The content on this page includes steps to customize or extend Atlassian software (adding/changing CSS rules, HTML, JavaScript, etc.). Per the Atlassian Support Offerings, support does not include customizations made to Atlassian products. Be aware that this material is provided for your information only and using it is done so at your risk.

If you have any questions about this or any customization, please ask the community at Atlassian Answers or consider working with an Atlassian Solution Partner.


Some organizations have security requirements that require the AutoComplete attribute to be set to "off" for Usernames and Passwords in form based authentication. Confluence does not prevent autocompletion by default, and you will need to alter the login form in order to alter this behavior.


With a few modifications, the autocomplete=off attribute can be set for both the username and password fields. You will need to alter the page for the user login form in order to accomplish setting the autocomplete to off.


  1. Edit <CONFLUENCE_INSTALL>/confluence/template/aui/password.vm
  2. Find the line

    <input type="password" name="$!webwork.htmlEncode($" id="$!webwork.htmlEncode($" ##

    And modify it to

    <input type="password" autocomplete="off" name="$!webwork.htmlEncode($" id="$!webwork.htmlEncode($" ##
  3. Save the file, shut down and restart Confluence
  4. Test your changes

This solution was tested in Confluence 5.x and 6.x. Future versions may change the files and form.

Last modified on Feb 27, 2018

Was this helpful?

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