Skip to content

Commit

Permalink
Fix saving accounts with burner emails
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Jan 14, 2024
1 parent efb2dfe commit 35d856f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SS14.Web/Areas/Admin/Pages/Users/ViewUser.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ public async Task<IActionResult> OnPostSaveAsync(Guid id)
await CheckRole(Input.HubAdmin, AuthConstants.RoleSysAdmin);
await CheckRole(Input.ServerHubAdmin, AuthConstants.RoleServerHubAdmin);

await _userManager.UpdateAsync(SpaceUser);
// Can't use UpdateAsync() because it validates email which might not work.
await _userManager.UpdateNormalizedEmailAsync(SpaceUser);
await _userManager.UpdateNormalizedUserNameAsync(SpaceUser);
await _dbContext.SaveChangesAsync();

await tx.CommitAsync();

Expand Down

0 comments on commit 35d856f

Please sign in to comment.