How to set "keep me logged in" checkbox to disabled by default?

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

 

Problem

There is no UI option for setting this behavior, but it is possible to achieve this by customizing the Service Management JAR pakage. Please notice that since this is a customization, this change is not officially supported.

Workaround

    This is the JAR that needs to be modified: <jira-home>/plugins/installed-plugins/jira-servicedesk-X.X.X.jar

  1.     Create a temporary folder and extract the jira-servicedesk-X.X.X.jar file there.
  2.     You will need to find the following file cv-login-form.soy, probably at /servicedesk/customer/feature/login/loginform/ folder.
  3.     You will need to find and remove the checked=" " atribute in the following content:

    <div class="buttons-container">
            <div class="buttons">
               
     <input class="aui-button {if $login.googleApps.enabled == false}aui-button-primary{/if} aui-style" type="submit" 
    value="{getText('cv.login.submit.label')}" id="js-login-submit">
                <span class="cv-status js-status"></span>
            </div>
            <input type="checkbox" class="checkbox remember-login" id="form-remember-login" name="os_cookie" checked="">
            <label for="form-remember-login">{getText('cv.login.remember.me')}</label>
        </div>
    
  4.    Create a new JAR container after modifying the file and name it the same as the original JAR file (e.g. jira-servicedesk-X.X.X.jar).
  5.     Replace the original JAR file on the folder from where it was copied originally with the modified JAR file.
  6.     Restart your Jira Instance.


Last modified on Nov 23, 2020

Was this helpful?

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