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
    1 week ago
    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?

Please Sign in or register to post replies

Write your reply to:

Draft