diff --git a/Directory.Build.props b/Directory.Build.props index d069e4f7..08749c48 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ VirtoCommerce - 6.22.0 + 6.23.0 $(VersionSuffix)-$(BuildNumber) diff --git a/VirtoCommerce.Storefront/Controllers/Api/ApiAccountController.cs b/VirtoCommerce.Storefront/Controllers/Api/ApiAccountController.cs index 297dce01..e2e3c507 100644 --- a/VirtoCommerce.Storefront/Controllers/Api/ApiAccountController.cs +++ b/VirtoCommerce.Storefront/Controllers/Api/ApiAccountController.cs @@ -513,5 +513,13 @@ private async Task SetLastLoginDate(User user) user.LastLoginDate = DateTime.UtcNow; await _signInManager.UserManager.UpdateAsync(user); } + + // GET: storefrontapi/account/passwordrequirements + [HttpGet("passwordrequirements")] + [AllowAnonymous] + public ActionResult GetPasswordRequirements() + { + return _identityOptions.Password; + } } } diff --git a/VirtoCommerce.Storefront/Domain/Security/SecurityConverter.cs b/VirtoCommerce.Storefront/Domain/Security/SecurityConverter.cs index 94434b4c..1277eb0f 100644 --- a/VirtoCommerce.Storefront/Domain/Security/SecurityConverter.cs +++ b/VirtoCommerce.Storefront/Domain/Security/SecurityConverter.cs @@ -143,6 +143,7 @@ public static dto.ApplicationUser ToUserDto(this User user) IsAdministrator = user.IsAdministrator, PhoneNumber = user.PhoneNumber, PhoneNumberConfirmed = user.PhoneNumberConfirmed, + PasswordExpired = user.PasswordExpired, }; if (!user.Roles.IsNullOrEmpty())