3 Answer(s)
-
0
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 customLogin.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 theautocomplete="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.
-
0
-
0
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