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

Update PassBook.java

parent 484edfde
Branches
No related tags found
No related merge requests found
Checking pipeline status
......@@ -84,7 +84,7 @@ public class PassBook
}
//check the passphrase strength
else {
if (passphrase.length() < MINIMUM_PASSPHRASE_LENGTH) {
if (passphrase.length() <= MINIMUM_PASSPHRASE_LENGTH) {
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