You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chaoscenter/authentication/api/handlers/doc.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ type ErrStrictPasswordPolicyViolation struct {
110
110
111
111
typeErrStrictUsernamePolicyViolationstruct {
112
112
Codeint`json:"code" example:"401"`
113
-
Messagestring`json:"message" example:"The username should be atleast 3 characters long and atmost 16 characters long."`
113
+
Messagestring`json:"message" example:"The username should be atleast 3 characters long and atmost 254 characters long, must start with a letter or digit, and can only contain letters, digits, and the characters . _ - @ +"`
Copy file name to clipboardExpand all lines: chaoscenter/authentication/pkg/utils/errors.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ var ErrorDescriptions = map[AppError]string{
55
55
ErrUnauthorized: "The user does not have requested authorization to access this resource",
56
56
ErrUserExists: "This username is already assigned to another user",
57
57
ErrStrictPasswordPolicyViolation: "Please ensure the password is atleast 8 characters long and atmost 16 characters long and has atleast 1 digit, 1 lowercase alphabet, 1 uppercase alphabet and 1 special character",
58
-
ErrStrictUsernamePolicyViolation: "The username should be atleast 3 characters long and atmost 16 characters long.",
58
+
ErrStrictUsernamePolicyViolation: "The username should be atleast 3 characters long and atmost 254 characters long, must start with a letter or digit, and can only contain letters, digits, and the characters . _ - @ +",
59
59
ErrEmptyProjectName: "Project name can't be empty",
60
60
ErrInvalidRole: "Role is invalid",
61
61
ErrProjectNotFound: "This project does not exist",
// ^[a-zA-Z0-9] # Must start with a letter or digit
2
+
// [a-zA-Z0-9._@+-] # Allow letters, digits, and the characters . _ - @ + (so emails are valid usernames for Dex SSO correlation)
3
+
// {2,253}$ # Ensure the length of the username is between 3 and 254 characters (1 character is already matched above; 254 is the RFC 5321 max email length)
0 commit comments