iammukeshm/CleanArchitecture.WebApi

register error

naji-makhoul opened this issue · 0 comments

when try to register new user get json error without IdentityError messages

{
  "Succeeded": false,
  **"Message": "System.Collections.Generic.List`1[Microsoft.AspNetCore.Identity.IdentityError]",**
  "Errors": null,
  "Data": null
}

for example., try to register new user with this json:

{
  "firstName": "string",
  "lastName": "string",
  "email": "user@example.com",
  "userName": "string",
  "password": "string",
  "confirmPassword": "string"
}

the Message must return 3 errors from result.Errors

  1. Passwords must have at least one non alphanumeric character.
  2. Passwords must have at least one digit ('0'-'9').
  3. Passwords must have at least one uppercase ('A'-'Z').