Skip to content

Instantly share code, notes, and snippets.

@AlissonRS
Forked from blachniet/CustomUserValidator.cs
Last active November 25, 2015 09:53
Show Gist options
  • Save AlissonRS/4faf6282d2f1f60c5c99 to your computer and use it in GitHub Desktop.
Save AlissonRS/4faf6282d2f1f60c5c99 to your computer and use it in GitHub Desktop.
This custom user validator can be used instead of the default user validator in order to require that the UserName property in the IUser be an email address. To use this validator, just set UserManager.UserValidator to a new instance of this class.
We couldn’t find any files to show.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment