IdentityServer4.Admin
IdentityServer4.Admin copied to clipboard
Seeding fails silently if password doesn't meet complexity requirements
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:
- 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
- Make the necessary connectionstrings changes
- 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.