title: Input password Blazor forms
body: <p>I am adding a form in Blazor and I am following instructions as specified here</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.0" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.0</a></p>
  
  <p>Is it possible to add an input with mask for passwords.</p>
  
  <p>I tried adding doing something like</p>
  
  <pre><code>public class LoginModel
      {
          [Required]
          public string Username { get; set; }
  
          [Required]
          [DataType(DataType.Password)]
          public string Password { get; set; }
      }
  </code></pre>
  
  <p>but that didnt work. Is there a way to hide password when inserted in input?</p>