Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

ASP.NET Identity Create new User Errors

$
0
0

Hi

Is there a way to identify the errors while trying to create a user with ASP.NET Identity in order to respond. For example, I have the following code

IdentityResult result = manager.Create(user, Password);

if (!result.Succeeded)

labelError.Text = result.Errors.FirstOrDefault();

My question is if I can identity the type of error in order to respond base on the type of error (i.e. to present the text of the error in different language or to present a general text base on the type of error)

Regards

Dimitris


Viewing all articles
Browse latest Browse all 4737

Trending Articles