diff --git a/src/Data.java b/src/Data.java index f39a587..b846832 100644 --- a/src/Data.java +++ b/src/Data.java @@ -249,7 +249,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);