Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the possible AspNet IdentityResult errors?

I've googled and can't find anywhere a list of possible errors, e.g. "Email xyz is already taken." (I know that is one definitely). "Name xyz is already taken." is another (for the username). I'm using Microsoft ASP.NET Identity 2.0, not version 3 on Github. They seem to be just simple strings and don't seem to have error codes or anything. I've had a look through the code on Codeplex also and there doesn't seem to be a clear list anywhere, just some vague fragments in unit tests.

like image 344
nmit026 Avatar asked Sep 13 '15 22:09

nmit026


1 Answers

EDIT:

Codeplex has shut down. Source code for Identity V2 now been moved to https://github.com/aspnet/AspNetIdentity

Here is the file that lists the IdentityResult errors:

https://github.com/aspnet/AspNetIdentity/blob/master/src/Microsoft.AspNet.Identity.Core/Resources.resx

Also, don't be a jerk and downvote what was obviously previously a useful answer just because a link has expired. Please inform the person who took the time to help you that the link has expired using a comment, not a downvote.

OLD ANSWER:

Found them in this Resources.resx file:

https://aspnetidentity.codeplex.com/SourceControl/latest#src/Microsoft.AspNet.Identity.Core/Resources.resx

like image 53
nmit026 Avatar answered Oct 10 '22 18:10

nmit026