Open Closed

How to make auto complete off for login password login mvc core razor ? #9842


User avatar
0
devmahmod created

I want to disabled autocomplete for password login how to make by easy way


3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    To disable autocomplete for the password field on the ABP login page in an MVC Core Razor application, you need to set the autocomplete="off" attribute on the password input in your custom Login.cshtml file.

    Example:

    <input asp-for="LoginInput.Password" class="form-control" autocomplete="off" />
    

    If you are customizing the login page, copy the original Login.cshtml from the ABP Account module into your project (as described in the ABP documentation), then add the autocomplete="off" attribute to the password input.

    This will instruct browsers not to autofill the password field.

    Sources:

    • https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml
    • https://abp.io/docs/latest/framework/ui/mvc-razor-pages/auto-complete-select

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    devmahmod created

    Do i need to copy all of this folder Account And put in my web project ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You only need to copy the Login.cshtml from the Account Pro module to your project.

    See https://abp.io/docs/2.8/How-To/Customize-Login-Page-MVC

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37