matteocontrini wonderbeel Flarum doesn't support lazy loading, but it's always possible to load an external file "on demand". For example the Emoji Picker extension by @clarkwinkelmann does that, and I think also @Kyrne's Websocket extension.
wonderbeel Yup, something similar to this should work in this case. BTW looking at the issues it seems that zxcvbn isn't mantained anymore and that there is a newer fork that supports i18n and multiple keyboard layouts, maybe it is better to make the switch?
IanM 3.0.0 Switch package from zxcvbn to zxcvbn-ts as suggested wonderbeel (Bundle size drastically reduced as well matteocontrini ) Updated for Flarum 1.0 🎆 Note There is no beta 16 support from this extension, 2.0.1 is the latest release for beta 15, 3.0.0 requires Flarum 1.0 or above ❗️ Not compatible with beta 16, but compatible with beta 15 and lower or v1.0 and up.
IanM Cross posting from here I've been commissioned by @glowingblue to update this extension in the coming days ready for Flarum 1.0 Either myself or @glowingblue / @iPurpl3x will post back here once it's ready
Justman10000 @glowingblue You have to install it with composer require glowingblue/password-strength:* No composer require glowingblue/password-strength
joanaranda Is there any way to force that only "Strong" or, at least, "Could be stronger" passwords are accepted? I think that the value of the extension would be much higher if it could be used to prevent weak passwords and not only to inform about them.
iPurpl3x joanaranda I guess there is a way to add that for sure. A PR would be welcome, but from our side (@glowingblue) we don't plan to add that feature.
Derbosik iPurpl3x The extension modifies the password field, erroring out when using a 2FA extension like ianm-twofactor. Disabling your extension fixes it. (Can you possibly find a way to mitigate this so that both extensions can work in harmony?)
glowingblue 4.0.0 chore: update js build workflow by @davetodave178 in glowingblue/flarum-ext-password-strength2 fix: only customize password item if key available by @davetodave178 in glowingblue/flarum-ext-password-strength3 Updating composer require glowingblue/password-strength:"*" php flarum cache:clear