From 8eb73732b56f55ff3031c5cde85f3b970f63aa3e Mon Sep 17 00:00:00 2001 From: Lin Fan <fanl4@student.unimelb.edu.au> Date: Thu, 5 Sep 2019 21:34:01 +1000 Subject: [PATCH] Update PassBook.java --- programs/mutant-2/swen90006/passbook/PassBook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/mutant-2/swen90006/passbook/PassBook.java b/programs/mutant-2/swen90006/passbook/PassBook.java index 56f99af..b77d814 100644 --- a/programs/mutant-2/swen90006/passbook/PassBook.java +++ b/programs/mutant-2/swen90006/passbook/PassBook.java @@ -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); } @@ -206,7 +206,7 @@ public class PassBook } PasswordTable pt = details.get(passbookUsername); - if (urlUsername == null || urlPassword == null) { + if (urlUsername == null && urlPassword == null) { pt.remove(url); } else { -- GitLab