VirtoCommerce / vc-storefront

Virto Commerce Storefront - ASP.NET Core 8.0
http://virtocommerce.com
Other
211 stars 212 forks source link

PT-13384: An blocked user received the error code email_verification_is_required #654

Closed OlegoO closed 1 year ago

OlegoO commented 1 year ago

Description:

fix: An blocked user received the error code email_verification_is_required. Extend IsUserLockedByRequiredEmailVerificationSpecification with Store Setting checking. email_verification_is_required returns if

_user.Contact.Status == "Locked"
                && !_user.EmailConfirmed
                && store.Settings.GetSettingValue<bool>("Stores.EmailVerificationEnabled", false)
                && store.Settings.GetSettingValue<bool>("Stores.EmailVerificationRequired", false)

--

QA-test:

Demo-test:

Download artifact URL:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here