From ea02b0a4b04ccd3c692a15f4db813c6d4f915feb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 9 Jul 2021 14:01:09 +0300 Subject: Updated limitations of username and chat name --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3084a48..6fcb579 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The task should serve as a "final exam" for developers who are learning the basi ### User accounts Each user must have the following properties: -- `string UserName`: between 2 and 40 characters (A-z, 0-9, ., \*, \_, -, at least one letter) +- `string UserName`: between 2 and 40 characters (A-z, 0-9, ., \*, \_, -, at least one letter, not already existing) - `string Password`: between 5 and 40 characters (any character, but at least one number) - `string Name`: between 2 and 60 characters (A-z, spaces, ', -) @@ -27,7 +27,7 @@ Passwords must be hashed. You decide on which algorithm to use. ### Chat rooms Each chat room must have the following properties: -- `string Name`: between 2 and 20 characters (A-z, 0-9, spaces, \_, -) +- `string Name`: between 2 and 20 characters (A-z, 0-9, spaces, \_, -, at least one letter, not already existing) - `string Description`: between 0 and 30 characters (any character) - `string Owner`: between 2 and 40 characters (must be an existing UserName, it's set automatically) - `string collection Messages`: a collection containing all messages -- cgit v1.2.3