diff --git a/src/Data.java b/src/Data.java index 8c5a40f..3ba410c 100644 --- a/src/Data.java +++ b/src/Data.java @@ -242,7 +242,7 @@ public class Data { boolean passwordValid = false; Pattern phoneNumberPattern = Pattern.compile("[0-9]*"); - Pattern passwordPattern = Pattern.compile("^[^a-zA-Z0-9].*[0-9]$"); + Pattern passwordPattern = Pattern.compile("^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$"); Scanner reader = new Scanner(System.in);