diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:50:29 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-18 15:50:29 +0200 |
commit | 75b26b28bf2189dd9e0d310f332a4620bd294b7f (patch) | |
tree | cecd45a7313dac5b12e5bfd5afb465513a5fb643 /toolkit/mozapps/preferences/changemp.js | |
parent | b16ad4c6724aed73063852f082d8847a88358b9f (diff) | |
parent | fe15bb43decc414a6f57301da049b34f488556ab (diff) | |
download | UXP-75b26b28bf2189dd9e0d310f332a4620bd294b7f.tar UXP-75b26b28bf2189dd9e0d310f332a4620bd294b7f.tar.gz UXP-75b26b28bf2189dd9e0d310f332a4620bd294b7f.tar.lz UXP-75b26b28bf2189dd9e0d310f332a4620bd294b7f.tar.xz UXP-75b26b28bf2189dd9e0d310f332a4620bd294b7f.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into js_dom_window_requestIdleCallback_1
Diffstat (limited to 'toolkit/mozapps/preferences/changemp.js')
-rw-r--r-- | toolkit/mozapps/preferences/changemp.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/toolkit/mozapps/preferences/changemp.js b/toolkit/mozapps/preferences/changemp.js index 82dd20128..71664b3e1 100644 --- a/toolkit/mozapps/preferences/changemp.js +++ b/toolkit/mozapps/preferences/changemp.js @@ -167,8 +167,8 @@ function setPasswordStrength() // length of the password var pwlength=(pw.length); - if (pwlength>5) - pwlength=5; + if (pwlength>10) + pwlength=10; // use of numbers in the password @@ -190,7 +190,7 @@ function setPasswordStrength() upper=3; - var pwstrength=((pwlength*10)-20) + (numeric*10) + (numsymbols*15) + (upper*10); + var pwstrength=((pwlength*5)-20) + (numeric*10) + (numsymbols*15) + (upper*10); // make sure we're give a value between 0 and 100 if ( pwstrength < 0 ) { @@ -227,6 +227,12 @@ function checkPasswords() } } + // Never accept short passwords < 8 chars + if (pw1.length < 8) { + ok.setAttribute("disabled", "true"); + return; + } + if (pw1 == pw2) { ok.setAttribute("disabled", "false"); } else |