3 writes to Succeeded
Microsoft.Extensions.Identity.Core (3)
IdentityResult.cs (3)
15private static readonly IdentityResult _success = new IdentityResult { Succeeded = true }; 44var result = new IdentityResult { Succeeded = false }; 54var result = new IdentityResult { Succeeded = false };
106 references to Succeeded
Identity.ExternalClaims (12)
Pages\Account\ConfirmEmail.cshtml.cs (1)
38if (!result.Succeeded)
Pages\Account\ExternalLogin.cshtml.cs (2)
121if (result.Succeeded) 124if (result.Succeeded)
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
89if (!changePasswordResult.Succeeded)
Pages\Account\Manage\Disable2fa.cshtml.cs (1)
54if (!disable2faResult.Succeeded)
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
63if (!result.Succeeded) 99if (!result.Succeeded)
Pages\Account\Manage\Index.cshtml.cs (2)
92if (!setEmailResult.Succeeded) 101if (!setPhoneResult.Succeeded)
Pages\Account\Manage\SetPassword.cshtml.cs (1)
81if (!addPasswordResult.Succeeded)
Pages\Account\Register.cshtml.cs (1)
73if (result.Succeeded)
Pages\Account\ResetPassword.cshtml.cs (1)
78if (result.Succeeded)
IdentitySample.DefaultUI (3)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
93if (!updateProfileResult.Succeeded) 101if (!setPhoneResult.Succeeded)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
91if (result.Succeeded)
IdentitySample.Mvc (11)
Controllers\AccountController.cs (5)
108if (result.Succeeded) 213if (result.Succeeded) 216if (result.Succeeded) 249return View(result.Succeeded ? "ConfirmEmail" : "Error"); 326if (result.Succeeded)
Controllers\ManageController.cs (6)
74if (result.Succeeded) 194if (result.Succeeded) 215if (result.Succeeded) 246if (result.Succeeded) 281if (result.Succeeded) 345var message = result.Succeeded ? ManageMessageId.AddLoginSuccess : ManageMessageId.Error;
Microsoft.AspNetCore.Identity (10)
IdentityApiEndpointRouteBuilderExtensions.cs (5)
173if (result.Succeeded) 179if (!result.Succeeded) 250if (!result.Succeeded) 371if (!changePasswordResult.Succeeded) 433Debug.Assert(!result.Succeeded);
SignInManager.cs (5)
391if (!resetLockoutResult.Succeeded) 408if (!incrementLockoutResult.Succeeded) 492if (!resetLockoutResult.Succeeded) 740if (!result.Succeeded) 942if (!result.Succeeded)
Microsoft.AspNetCore.Identity.InMemory.Test (5)
FunctionalTest.cs (5)
314if (result.Succeeded) 318if (result.Succeeded) 322res.StatusCode = result.Succeeded ? 200 : 500; 327res.StatusCode = result.Succeeded ? 200 : 500; 333res.StatusCode = result.Succeeded ? 200 : 500;
Microsoft.AspNetCore.Identity.Specification.Tests (4)
IdentityResultAssert.cs (4)
22Assert.True(result.Succeeded); 31Assert.False(result.Succeeded); 40Assert.False(result.Succeeded); 50Assert.False(result.Succeeded);
Microsoft.AspNetCore.Identity.Test (19)
IdentityResultTest.cs (2)
12Assert.False(result.Succeeded); 20Assert.False(result.Succeeded);
RoleManagerTest.cs (2)
26Assert.True(result.Succeeded); 46Assert.True(result.Succeeded);
UserManagerTest.cs (15)
78Assert.True(result.Succeeded); 97Assert.True(result.Succeeded); 119Assert.True(result.Succeeded); 136Assert.True(result.Succeeded); 156Assert.True(result.Succeeded); 178Assert.True(result.Succeeded); 199Assert.True(result.Succeeded); 368Assert.True(result.Succeeded); 407Assert.True(result.Succeeded); 469Assert.True(result.Succeeded); 517Assert.True(result.Succeeded); 538Assert.True(result.Succeeded); 560Assert.True(result.Succeeded); 646Assert.True(result.Succeeded); 667Assert.True(result.Succeeded);
Microsoft.AspNetCore.Identity.UI (28)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (1)
58StatusMessage = result.Succeeded ? "Thank you for confirming your email." : "Error confirming your email.";
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (2)
60if (!result.Succeeded) 69if (!setUserNameResult.Succeeded)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
189if (result.Succeeded) 192if (result.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
127if (!changePasswordResult.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
107if (!result.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (1)
75if (!disable2faResult.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
116if (!result.Succeeded) 154if (!result.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (1)
121if (!setPhoneResult.Succeeded)
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
115if (!addPasswordResult.Succeeded)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
135if (result.Succeeded)
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
121if (result.Succeeded)
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (1)
58StatusMessage = result.Succeeded ? "Thank you for confirming your email." : "Error confirming your email.";
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (2)
60if (!result.Succeeded) 69if (!setUserNameResult.Succeeded)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
189if (result.Succeeded) 192if (result.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
127if (!changePasswordResult.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
107if (!result.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (1)
75if (!disable2faResult.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
116if (!result.Succeeded) 154if (!result.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (1)
121if (!setPhoneResult.Succeeded)
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
115if (!addPasswordResult.Succeeded)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
135if (result.Succeeded)
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
121if (result.Succeeded)
Microsoft.Extensions.Identity.Core (14)
IdentityResult.cs (1)
72return Succeeded ?
RoleManager.cs (3)
160if (!result.Succeeded) 403if (!result.Succeeded) 428if (!result.Succeeded)
UserManager.cs (10)
466if (!result.Succeeded) 578if (!result.Succeeded) 739if (!result.Succeeded) 766if (!result.Succeeded) 889if (!result.Succeeded) 2013if (update.Succeeded) 2223if (!validate.Succeeded) 2313if (!result.Succeeded) 2344if (!result.Succeeded) 2374if (!result.Succeeded)