From c42ac4e0e0a57d49317775245e43677dde36deac Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Tue, 25 Mar 2014 01:29:49 -0400 Subject: [PATCH] Join: usernames must be between two and twelve characters One character usernames would be cool, except for the whole /afs/hcoop/net/user/a/ab thing --- app/app.sml | 2 +- app/join.mlt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.sml b/app/app.sml index 12abe57..513fa94 100644 --- a/app/app.sml +++ b/app/app.sml @@ -161,7 +161,7 @@ fun validDomain s = fun validUsername name = size name <= 12 - andalso size name > 0 + andalso size name >= 2 andalso Char.isLower (String.sub (name, 0)) andalso CharVector.all Char.isAlphaNum name diff --git a/app/join.mlt b/app/join.mlt index 9019574..79a66fb 100644 --- a/app/join.mlt +++ b/app/join.mlt @@ -58,8 +58,8 @@ else - <% if minor then %> -- 2.20.1
Desired username:
- Please follow usual UNIX conventions, including limiting yourself to lowercase letters and at most 12 characters. It's helpful to pick a name you wouldn't mind using to identify yourself to both strangers and friends. Something based on your "real" name is a safe bet.
+
Desired username:
+ Please follow usual UNIX conventions, including limiting yourself to lowercase letters and between 2 and 12 characters. It's helpful to pick a name you wouldn't mind using to identify yourself to both strangers and friends. Something based on your "real" name is a safe bet.
You don't need to worry about whether or not the username you want is already taken. This application system will let you know if that is the case. You can probably use a shorter and simpler name than you are accustomed to getting at larger services, so we encourage you to try such names first.