0

I'm using Thinktecture IdentityServer with MembershipReboot and i'm trying to find a way to override the default username validation of username.

my case is that I want to allow username to be email or not and not the same as the user email. The username validation is configured in UserAccountService, I can add validation but I Don't know how to remove them.

I'd simply like to remove the validatior UsernameDoesNotContainAtSign and UsernameOnlyContainsLettersAndDigits, and do that without any modification of MembershipReboot, through configuration or ?

Edit:

Related GitHub issues:

Tom Robinson
  • 8,348
  • 9
  • 58
  • 102
moi_meme
  • 9,180
  • 4
  • 44
  • 63

1 Answers1

2

Some of these validation rules are hard coded. If you have a use case for changing them, I'd suggest opening an issue on the github issue tracker so we can discuss.

Brock Allen
  • 7,385
  • 19
  • 24