Skip to content

Commit

Permalink
Merge branch 'release/6.34.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Nov 20, 2023
2 parents 1429b28 + 978cd58 commit d8f9028
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Authors>VirtoCommerce</Authors>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>6.33.0</VersionPrefix>
<VersionPrefix>6.34.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
5 changes: 3 additions & 2 deletions VirtoCommerce.Storefront/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ private async Task SignOutAndSignInAsync(User user)
await SetLastLoginDate(user);
}

private async Task SetLastLoginDate(User user)
private Task SetLastLoginDate(User user)
{
user.LastLoginDate = DateTime.UtcNow;
await _signInManager.UserManager.UpdateAsync(user);
user.AccessFailedCount = 0;
return _signInManager.UserManager.UpdateAsync(user);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,11 @@ private async Task<NotificationSendResult> SendNotificationAsync(NotificationBas
return result;
}

private async Task SetLastLoginDate(User user)
private Task SetLastLoginDate(User user)
{
user.LastLoginDate = DateTime.UtcNow;
await _signInManager.UserManager.UpdateAsync(user);
user.AccessFailedCount = 0;
return _signInManager.UserManager.UpdateAsync(user);
}

// GET: storefrontapi/account/passwordrequirements
Expand Down

0 comments on commit d8f9028

Please sign in to comment.