From 3d8aec735866e8fef0e7f948480144201346dc12 Mon Sep 17 00:00:00 2001 From: Bezsmertnyi Vladyslav <95479228+Vladik-gif@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:19:40 +0300 Subject: [PATCH] Update Constants.java for Password --- src/main/java/com/chat/yourway/utils/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chat/yourway/utils/Constants.java b/src/main/java/com/chat/yourway/utils/Constants.java index 9e11282..206b100 100644 --- a/src/main/java/com/chat/yourway/utils/Constants.java +++ b/src/main/java/com/chat/yourway/utils/Constants.java @@ -12,7 +12,7 @@ public class Constants { public static final Pattern EMAIL_PATTERN = Pattern.compile("[A-Za-z0-9.\\-_]+@[A-Za-z]+\\.[A-Za-z]{2,3}"); public static final Pattern NICKNAME_PATTERN = Pattern.compile("^[a-zA-Z0-9а-яА-ЯІіЇї!@#$%^&*_\\-+=~?]{4,20}$"); public static final int MIN_PASSWORD_LENGTH = 4; - public static final int MAX_PASSWORD_LENGTH = 12; + public static final int MAX_PASSWORD_LENGTH = 20; public static final Pattern PASSWORD_SPECIAL_SYMBOLS_PATTERN = Pattern.compile(".*[!@#$%^&*_\\-+=~?].*"); public static final Pattern PASSWORD_UPPER_CASE_PATTERN = Pattern.compile(".*[A-Z].*"); public static final Pattern PASSWORD_DIGIT_PATTERN = Pattern.compile(".*\\d.*");