question

eddy28-8301 avatar image
0 Votes"
eddy28-8301 asked YinqiuYao-MSFT commented

How would i be able to validate my model based on the parameters outlined in UserIdentity password

Hello,

I was following an identity tutorial, and I was wondering how would I be able to validate my password creation against the default parameters outlined in IdentityOptions without using a regular expression by manually defining these parameters, or is that the best way to go about it? Or is there a better way to validate it based on the default parameters and display the validation messages based on the image below.
THis is the video series

103582-register.png


dotnet-aspnet-core-mvcmicrosoft-identity-manager
register.png (82.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @eddy28-8301,You can implement your own password validator and register it which should overwrite the default password validator for asp.net core identity."public class MyPasswordValidator: IPasswordValidator".
.

0 Votes 0 ·

0 Answers