From 484edfde5b586f0079e2245eed2a6971d8af79e5 Mon Sep 17 00:00:00 2001 From: Lin Fan <fanl4@student.unimelb.edu.au> Date: Thu, 5 Sep 2019 21:26:21 +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 9ea7fda..8f710dc 100644 --- a/programs/mutant-2/swen90006/passbook/PassBook.java +++ b/programs/mutant-2/swen90006/passbook/PassBook.java @@ -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); } -- GitLab