Skip to content

Commit

Permalink
Asp.Net Core Identity: SecurityStamp
Browse files Browse the repository at this point in the history
  • Loading branch information
phongnguyend committed Jul 26, 2022
1 parent 992a12e commit ac413f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public Task<bool> GetPhoneNumberConfirmedAsync(User user, CancellationToken canc

public Task<string> GetSecurityStampAsync(User user, CancellationToken cancellationToken)
{
return Task.FromResult(user.SecurityStamp);
return Task.FromResult(user.SecurityStamp ?? string.Empty);
}

public Task<bool> GetTwoFactorEnabledAsync(User user, CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public Task<bool> GetPhoneNumberConfirmedAsync(User user, CancellationToken canc

public Task<string> GetSecurityStampAsync(User user, CancellationToken cancellationToken)
{
return Task.FromResult(user.SecurityStamp);
return Task.FromResult(user.SecurityStamp ?? string.Empty);
}

public Task<bool> GetTwoFactorEnabledAsync(User user, CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public Task<bool> GetPhoneNumberConfirmedAsync(User user, CancellationToken canc

public Task<string> GetSecurityStampAsync(User user, CancellationToken cancellationToken)
{
return Task.FromResult(user.SecurityStamp);
return Task.FromResult(user.SecurityStamp ?? string.Empty);
}

public Task<bool> GetTwoFactorEnabledAsync(User user, CancellationToken cancellationToken)
Expand Down

0 comments on commit ac413f3

Please sign in to comment.