Only check pw criteria if pw not blank

This commit is contained in:
mattpass
2021-04-08 16:23:18 +01:00
parent cea8e0a36e
commit 8e01faad10

View File

@@ -540,7 +540,7 @@ const checkCase = function(evt) {
// Check if we can submit, else shake requirements
const checkCanSubmit = function() {
// Password isn't strong enough, shake requirements
if(false === pwStrength(get("password").value)) {
if("" !== get("password").value && false === pwStrength(get("password").value)) {
shake("newPasswordText");
shake("password");
shake("pwReqs");