So I've been toying around with this for awhile but I can't seem to find an answer to my problem.
I use Zxcvbn on my website to perform password validation. I have the Javascript version running on the client-side to give the user helpful information when choosing a password. And I used to have the PHP port by bjeavons in conjunction with olssonm's adaptation for Laravel 5 running on the server for validation.
However, it turns out that both versions don't rank passwords the same, so users think that their password is strong enough in their browser and then the server refuses to validate it.
I thought about using AJAX requests to have the client query the server for information about a password, but that seemed like it would result in an overwhelming number of requests.
So I'd like to use the Javascript version on the server (through Node.js maybe?) and query it from my Laravel 5 app. How would I go about doing such a thing?
(Apologies if there's an obvious answer to this, I've never done such a thing before)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire