Skip to content

Commit bac3a4c

Browse files
committed
Added security stamp update on login
1 parent 84e41de commit bac3a4c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/ScottBrady91.PasswordlessAuthentication/Controllers/AccountController.cs

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public async Task<IActionResult> LoginCallback(string token, string email)
6060

6161
if (isValid)
6262
{
63+
await userManager.UpdateSecurityStampAsync(user);
64+
6365
await HttpContext.SignInAsync(
6466
IdentityConstants.ApplicationScheme,
6567
new ClaimsPrincipal(new ClaimsIdentity(

src/ScottBrady91.PasswordlessAuthentication/Views/Shared/Error.cshtml

-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
<h1 class="text-danger">Error.</h1>
77
<h2 class="text-danger">An error occurred while processing your request.</h2>
88

9-
@if (Model.ShowRequestId)
10-
{
11-
<p>
12-
<strong>Request ID:</strong> <code>@Model.RequestId</code>
13-
</p>
14-
}
15-
169
<h3>Development Mode</h3>
1710
<p>
1811
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.

0 commit comments

Comments
 (0)