IdentityResult type

May 12, 2014 at 10:57 AM

With the current implementation of ASP.NET identity the result for methods like UserManager.Create return IdentityResult where one can check if the operation is successful. However the errors are only returned as a string. If I wanted to provide specific messages to the user I would either need to use the strings provided by the framework or compare the strings returned to predetermined strings. Both are not acceptable. The first method is not good for localization and not customizable and the second depends on fragile string comparison.

Wouldn't it be better if failure returned something more than string errors? Seems like an enum would be a good fit here.
May 13, 2014 at 9:08 PM
Open an issue and we can triage it
May 15, 2014 at 8:56 PM
suhasj wrote:
Open an issue and we can triage it
Done -