skoruba/IdentityServer4.Admin

Can not seed admin user. create false.

lion-liu opened this issue · 1 comments

Describe the bug

use offical command to init project ,when project run, can not login with admin, after debug,i know where is wrong,
please fix the identitydata.json with Users__0__Password value.

 dotnet new skoruba.is4admin --name MyProject2 --title MyProject2 --adminemail "admin@example.com" --adminpassword "Pa$$word123" --adminrole MyRole --adminclientid MyClientId --adminclientsecret MyClientSecret --dockersupport true

To Reproduce

just run offical command ,bug can be reproduce

Relevant parts of the log file

that is all

<log goes here>

image

image

@lion-liu Check the error message, your seed data password does not fulfil the password constraints stated by ID4. You need at least one special character in the password.

Thanks for this issue as you have reminded me on this matter too :D