From 86ee86f5a922a348dd1563e7a8e32b3204d782c5 Mon Sep 17 00:00:00 2001 From: Andrew Lindesay Date: Fri, 7 Apr 2023 12:31:30 +1200 Subject: [PATCH] HaikuDepot: Nickname Length HDS has increased the length of the nickname to 32 characters on version 1.0.147 and this change supports that change in the desktop client. Resolves to #18343 Change-Id: Iae07acc165165e91b04cef7ebc1190d241d9a053 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6307 Tested-by: Commit checker robot Reviewed-by: waddlesplash --- src/apps/haikudepot/util/ValidationUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/haikudepot/util/ValidationUtils.cpp b/src/apps/haikudepot/util/ValidationUtils.cpp index ace3911530..a20061b9e3 100644 --- a/src/apps/haikudepot/util/ValidationUtils.cpp +++ b/src/apps/haikudepot/util/ValidationUtils.cpp @@ -11,10 +11,10 @@ #define MIN_LENGTH_NICKNAME 4 -#define MAX_LENGTH_NICKNAME 16 +#define MAX_LENGTH_NICKNAME 32 #define MIN_LENGTH_PASSWORD_CLEAR 8 -#define MIN_UPPER_PASSWORD_CLEAR 2 +#define MIN_UPPER_PASSWORD_CLEAR 1 #define MIN_DIGITS_PASSWORD_CLEAR 2 /*! 1 if the character would be suitable for use in an email address mailbox @@ -120,6 +120,7 @@ ValidationUtils::IsValidEmail(const BString& value) } +// TODO: needs to reflect the data from the server rather than be hard coded /*static*/ bool ValidationUtils::IsValidPasswordClear(const BString& value) {