S
S
Sergey Nizhny Novgorod2018-04-05 15:31:35
ASP.NET
Sergey Nizhny Novgorod, 2018-04-05 15:31:35

How to change validation to password in asp.net core?

If you use the standard registration from asp.net core, then there are two situations when registering.
1) The password asks for a special character
2) The validation error for some reason does not say this, but says that you do not have enough characters.
How can I change the password logic to remove the request for special characters, and how can I change these validation errors:

  1. Passwords must have at least one non alphanumeric character.
  2. Passwords must have at least one lowercase ('a'-'z')

There is an answer on the net for this situation under asp.net mvc 5, where you need to change the configuration file. As for asp.net core, there is no this file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question