title: hide model variable's / property's value from the developer on mvc controller
body: <p>I have developed an MVC web application using MVC -5 and visual studio 2017. </p>
  
  <p>I am using the forms authentication hence making the user enter the username and password. </p>
  
  <p>I have a view "Login" where I have my text boxes for username and password and I get the value on the controller using the model called "LoginData.cs"</p>
  
  <p>in my action method, I get the value of password entered by the user in a free text and I don't want the developer to look or have access to this free text for security reasons. </p>
  
  <p>I can not encrypt or do hashing on this free text as 
  1. I am not saving the password anywhere in the database 
  2. the active directory needs the free text of password to ValidateCredentials</p>
  
  <p>I just don't want the developers in the team to be able to look at the password-free text when they hover their mouse in debugging mode or be able to save these passwords elsewhere by writing some code.</p>
  
  <p>just wondering if there is any way to do this </p>
  
  <p>[HttpPost]
          public ActionResult Login(LoginData LoginDataModel)</p>
  
  <pre><code>    {
  
  
          bool isValid = false;
          using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, ""))
          {
              // validate the credentials
               isValid = pc.ValidateCredentials(LoginDataModel.Username, LoginDataModel.Password);
          }
  </code></pre>
  
  <p>I just don't want the developers in the team to be able to look at the password-free text when they hover their mouse in debugging mode or be able to save these passwords elsewhere by writing some code.</p>