Commit 01593e90 authored by o@immerda.ch's avatar o@immerda.ch
Browse files

off by one

parent a5941506
......@@ -3,7 +3,7 @@ function pwstrength() {
e.innerHTML = ' ';
var p = document.getElementById('new').value;
var s = zxcvbn(p).score;
if (p.length < 9 && s > 2) {
if (p.length < 10 && s > 2) {
s = 2
}
if (p.length > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment