Skip to content
Snippets Groups Projects
Commit 484edfde authored by Lin Fan's avatar Lin Fan
Browse files

Update PassBook.java

parent 1b511f67
No related branches found
No related tags found
No related merge requests found
Pipeline #5386 passed
......@@ -104,7 +104,7 @@ public class PassBook
}
}
if (!containsLowerCase && !containsUpperCase || !containsNumber) {
if (!containsLowerCase || !containsUpperCase || !containsNumber) {
throw new WeakPassphraseException(passphrase);
}
}
......@@ -243,7 +243,7 @@ public class PassBook
PasswordTable pt = details.get(passbookUsername);
//if this returned nothing, the user has no details for any url
if (pt == null) {
if (pt != null) {
throw new NoSuchURLException(passbookUsername, url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment