-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.2.2 password reset strength meter #13429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@zukovasmartynas, thank you for your report. |
I was able to reproduce this one in 2.2.2. I have a small fix for the issue described above for the frontend user. I am, however, further checking the above commit posted by @okorshenko and the backend and setup steps, as to see if they are affected as well. |
#MLAU18 |
I will proceed with submitting the PR now. |
…doing the email comparison only if an email field exists
Accepted Public Pull Requests: - #13770: Remove not-allowed currencies from the currencies dropdown in Setup (by @r-martins) - #13759: Add ObserverInterface to the api (by @fooman) - #13761: Fix bug Magento 2.2.2 password reset strength meter #13429 (by @aoldoni) - #13678: Add RewriteBase directive template in .htaccess file into pub/static folder (by @ccasciotti) - #13742: Fix adding values to system variable collection unit test. (by @nmalevanec) - #13740: Display a more meaningful error message in case of misspelt module name unit test. (by @nmalevanec) - #13586: Add option to add IP address to existing list (by @barryvdh) - #13661: Typo (address not addres) (by @srenon) - #13643: Fixes #12791 - Use a selector to only select the correct tax rate sel� (by @hostep)
The issue has been fixed in #13761 |
…doing the email comparison only if an email field exists
Hi @zukovasmartynas. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
Hi @zukovasmartynas. Thank you for your report. The fix will be available with the upcoming 2.1.16 release. |
Preconditions
Steps to reproduce
<referenceContainer name="form.subscribe" remove="true"/>
Expected result
Actual result
Error on the console.
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
Went to the vendor/magento/module-customer/view/frontend/web/js/password-strength-indicator.js:77
if (password.toLowerCase() === this.options.cache.email.val().toLowerCase()) {
Apearently this.options.cache.email is undefined. Checked code above where it is declared - line:34
this.options.cache.email = $(this.options.formSelector).find(this.options.emailSelector);
Checked values above:
this.options.formSelector = 'form'
this.options.emailSelector = 'input[type="email"]'
So in conlusion: email is being searched in any form, Meaning if there are no form with email - strength meter fails. I believe this can be a leftover from older code versions, because othervise this would be a bit of a nonsense.
I haven't created a branch for a fix, but I think this one would be an easy one:
Or just make do something else - its just a suggestion, if that compare is really needed.
I hope this will help someone and it will be fixed :)
The text was updated successfully, but these errors were encountered: