Skip to content

Commit

Permalink
Merge pull request #161 from Etherna/fix/ESSO-215-lockout-timeout
Browse files Browse the repository at this point in the history
save user and sharedinfo updates
  • Loading branch information
tmm360 authored Jun 5, 2023
2 parents 68f5f9c + 0ebf612 commit 447a866
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/EthernaSSO/Configs/Identity/UserStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ public Task SetUserNameAsync(UserBase user, string? userName, CancellationToken
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "External library doesn't declare exceptions")]
public async Task<IdentityResult> UpdateAsync(UserBase user, CancellationToken cancellationToken)
{
try { await ssoDbContext.Users.ReplaceAsync(user, cancellationToken: cancellationToken); }
try
{
//update both UserBase and UserSharedInfo
await ssoDbContext.SaveChangesAsync(cancellationToken);
}
catch { return IdentityResult.Failed(); }
return IdentityResult.Success;
}
Expand Down

0 comments on commit 447a866

Please sign in to comment.