IdentityServer4.Admin icon indicating copy to clipboard operation
IdentityServer4.Admin copied to clipboard

Seeding fails silently if password doesn't meet complexity requirements

Open pkExec opened this issue 2 years ago • 0 comments

Describe the bug

As the title says, if the provided password doesn't meet the password complexity rules, the seeding fails. Using the default settings, this will happen if you provide a password less than 8 characters.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new project with a weak password: dotnet new skoruba.is4admin --name MyProject --title MyProject --adminemail "[email protected]" --adminpassword "123" --adminrole MyRole --adminclientid MyClientId --adminclientsecret MyClientSecret --dockersupport true
  2. Make the necessary connectionstrings changes
  3. Run dotnet run /seed

What should happen

Seeding should throw a message or an exception since it failed, explaining that it failed because of insufficiently complex password.

pkExec avatar Dec 01 '21 07:12 pkExec