Sitefinity Backend Admin Login Auto Complete Off - General Discussions - General Discussions - Progress Community
 General Discussions

Sitefinity Backend Admin Login Auto Complete Off

  • Sitefinity Backend Admin Login Auto Complete Off
  • Hi All,

    One of our client is asking to set Auto complete Off on the Admin Login Form. How i am Supposed to do that ?? I tried :

    www.sitefinity.com/.../turn-off-form-auto-complete 

     How do i override the behavior of existing Sitefinity admin login Form?

     

  • Ehsan,

    I have solution that MIGHT work, or at least give you a good start.  I also want to mention that this solution requires making a small modification to the login back-end screen.  I recommend testing this out in a TEST environment first before trying this in your production environment.

    Below are my steps...

    1. Log on the your Sitefinity backend
    2. Go to the Administration > Backend Pages.  Click the OK button to acknowledge the warning of changing backend pages.
    3. Under the "Login" group page click on the "Login" page.
    4. Add a script block to the bottom of the page, a paste the JavaScript snippet, found below, into the textbox and set the option "Where to include HTML?" to "Before the closing body tag"

    $(function()
        var i = $('input[type="text"], input[type="password"]');
        i.val("");
        i.attr("autocomplete","off");
        $('form').attr('autocomplete','off');
    );

    I hope that you find this helpful.

     

    Craig

     

     

     

     

  • d5c5501e-37c1-6deb-a958-ff0000446526_backenlogin.png

     

    Hi Craig,

    Thanks for the response. I am using Sitefinity Version 7.2 and i couldnt find any such option to add scripts to the page beside one i found in the 'Title & Properties' of the page and then 'Advanced Options' (Screen Capture Attached) but no luck. Can you please point out where exactly i have to add my own snippets on the page.

    Thanks

  • Hello Ehsan,

    You can add the code, proposed by Craig, in JavaScript widget.

    More information how to do this is available here.

    I hope this information helps.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  •  Hi Svetoslav,

    Thanks for your response. I've tried your proposed idea of add a JS Widget on the page but unfortunately its not working. I added autocomplete on textboxes also on form level but its not reflecting at all. By doing a little research i came to know that chrome ignores autocomplete on first two textboxes so, i am going to try to add a hack by adding two hidden textboxes on the form. Any idea how i am going to achieve that ??

    Thanks

  • Hello Ehsan,

    The code provided by Craig seems works fine (video demonstration).

    Please try the following:
    - Go to Administration > Backend Pages
    - Open Sitefinity > Login > Login
    - Add JavaScript Widget
    - Click edit and Paste the proposed code
    - Set it Before the closing body tag (screenshot)
    - Click Save and publish the Page

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • This is not a reasonable solution if you use a security scanning application. The scanning tool looks at the actual code behind the login form. Using a JS script to dynamically insert this attribute after page load is not satisfying this security requirement.
  • Hi AG.

    Alternative solution. Instead of using JS, you can override default template of backend login widget. 

    Detailed instruction how to do that located here: http://knowledgebase.progress.com/articles/Article/Change-the-default-template-of-the-backend-login-widget

    And just add autocomplete="off" attribute in new template

  • Since 8.0 this is an advanced configuration option.

    To turn on/off password autocomplete go to  Settings > Advanced > Login > Disable browser autocomplete check box.