···118 return
119 }
12000000121 if !isValidSubdomain(subdomain) {
122 s.Pages.Notice(w, "settings-sites-error", "Invalid subdomain. Use only lowercase letters, digits, and hyphens. Cannot start or end with a hyphen.")
123 return
···118 return
119 }
120121+ if len(subdomain) < 4 {
122+ s.Pages.Notice(w, "settings-sites-error", "Subdomain must be at least 4 characters long.")
123+ return
124+ }
125+126 if !isValidSubdomain(subdomain) {
127 s.Pages.Notice(w, "settings-sites-error", "Invalid subdomain. Use only lowercase letters, digits, and hyphens. Cannot start or end with a hyphen.")
128 return