Created
October 1, 2015 19:58
-
-
Save TheAngryByrd/3f40a8fc2a8111cd4dd8 to your computer and use it in GitHub Desktop.
IdentityResult.fs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Rop<'TSuccess,'TError> = | |
| | Pass of 'TSuccess | |
| | Fail of 'TError list | |
| type IdentityError = { Code : string; Message: string; } | |
| type UserAuthErrors<'CustomError> = | |
| | DefaultError of IdentityError | |
| | ConcurrencyFailure of IdentityError | |
| | PasswordMismatch of IdentityError | |
| | InvalidToken of IdentityError | |
| | LoginAlreadyAssociated of IdentityError | |
| | InvalidUserName of IdentityError | |
| | InvalidEmail of IdentityError | |
| | DuplicateUserName of IdentityError | |
| | DuplicateEmail of IdentityError | |
| | InvalidRoleName of IdentityError | |
| | DuplicateRoleName of IdentityError | |
| | UserAlreadyHasPassword of IdentityError | |
| | UserLockoutNotEnabled of IdentityError | |
| | UserAlreadyInRole of IdentityError | |
| | UserNotInRole of IdentityError | |
| | PasswordTooShort of IdentityError | |
| | PasswordRequiresNonLetterAndDigit of IdentityError | |
| | PasswordRequiresDigit of IdentityError | |
| | PasswordRequiresLower of IdentityError | |
| | PasswordRequiresUpper of IdentityError | |
| | Exception of exn | |
| | CustomError of 'CustomError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment