|
|
@ -39,11 +39,15 @@ public class Vault implements VaultInterface { |
|
|
|
|
|
|
|
if (input.equals("e")) { |
|
|
|
config = false; |
|
|
|
}else if (input.equals("l")) { |
|
|
|
} else if (input.equals("l")) { |
|
|
|
println("Set PW length:"); |
|
|
|
String inputPw = scan.nextLine(); |
|
|
|
setPWLength(inputPw); |
|
|
|
}else if (!input.equals("l")|!input.equals("e")|!input.equals("h")) { |
|
|
|
} else if (input.equals("h")) { |
|
|
|
println("Should your PW have capitals? Type in yes or no."); |
|
|
|
String inputC = scan.nextLine(); |
|
|
|
setPWLength(inputC); |
|
|
|
} else if (!input.equals("l")|!input.equals("e")|!input.equals("h")) { |
|
|
|
println("Please enter valid key."); |
|
|
|
} |
|
|
|
|
|
|
@ -83,11 +87,7 @@ public class Vault implements VaultInterface { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void setCapital() { |
|
|
|
println("Should you PW have capitals? Type in yes or no."); |
|
|
|
|
|
|
|
Scanner scan = new Scanner(inputS); |
|
|
|
String input = scan.nextLine(); |
|
|
|
public void setCapital(String input) { |
|
|
|
|
|
|
|
if(input.equals("yes")){ |
|
|
|
haveCapitals = true; |
|
|
|