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

Update PassBook.java

parent 14af84bc
No related branches found
No related tags found
No related merge requests found
Pipeline #5406 passed
...@@ -84,7 +84,7 @@ public class PassBook ...@@ -84,7 +84,7 @@ public class PassBook
} }
//check the passphrase strength //check the passphrase strength
else { else {
if (passphrase.length() > MINIMUM_PASSPHRASE_LENGTH) { if (passphrase.length() < MINIMUM_PASSPHRASE_LENGTH) {
throw new WeakPassphraseException(passphrase); throw new WeakPassphraseException(passphrase);
} }
...@@ -250,7 +250,7 @@ public class PassBook ...@@ -250,7 +250,7 @@ public class PassBook
Pair<String, String> pair = pt.get(url); Pair<String, String> pair = pt.get(url);
//if this returned nothing, the user does not have a login for this url //if this returned nothing, the user does not have a login for this url
if (pair == null) { if (!(pair == null)) {
throw new NoSuchURLException(passbookUsername, url); 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