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