Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ahmed Mohsen 2 posts 72 karma points
    Oct 15, 2024 @ 20:30
    Ahmed Mohsen
    0

    Umbrco Backoffice Login

    in Umbraco Backoffice Login Form, i want to change autocomplete="off" to the form and the password input.

    how to do so?

    I tried to create a plugin to override the value

    document.addEventListener("DOMContentLoaded", function () {
    // Get the password input inside the login form
    const passwordInput = document.querySelector("#umb-login-form input[type='password']");
    
    if (passwordInput) {
        // Disable autocomplete for the password input field
        passwordInput.setAttribute("autocomplete", "off");
    

    }

    the plugin solution does not work even though the styles i added in the css file worked

    any insights?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies