Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Input password Blazor forms

$
0
0

I am adding a form in Blazor and I am following instructions as specified here

https://learn.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.0

Is it possible to add an input with mask for passwords.

I tried adding doing something like

public class LoginModel    {        [Required]        public string Username { get; set; }        [Required]        [DataType(DataType.Password)]        public string Password { get; set; }    }

but that didnt work. Is there a way to hide password when inserted in input?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>