I have a user page, where I create users, the fields of login and password is loading by default from the User identity.
Can someone explain to me why is it happening?
Here's the code:
@Html.LabelFor(model => model.LoginName)
@Html.TextBoxFor(model => model.LoginName, new { @maxlength = "30", @class = "form-control", placeholder = "Login" })
@Html.ValidationMessageFor(model => model.LoginName)
@Html.LabelFor(model => model.UserPassword)
@Html.PasswordFor(model => model.UserPassword, new { @maxlength = "50", @class = "form-control", placeholder = "Senha" })
@Html.ValidationMessageFor(model => model.UserPassword)