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

Update PassBook.java

parent cbec7713
No related branches found
No related tags found
No related merge requests found
Pipeline #5510 passed
......@@ -84,6 +84,9 @@ public class PassBook
}
//check the passphrase strength
else {
if(passbookUsername.length()<1) {
throw new WeakPassphraseException(passphrase);
}
if (passphrase.length() < MINIMUM_PASSPHRASE_LENGTH) {
throw new WeakPassphraseException(passphrase);
}
......@@ -109,7 +112,7 @@ public class PassBook
}
}
passphrases.put(passphrase, passbookUsername);
passphrases.put(passbookUsername, passphrase);
PasswordTable pt = new PasswordTable();
details.put(passbookUsername, pt);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment