mirror of
				https://github.com/osmarks/mycorrhiza.git
				synced 2025-10-30 23:23:04 +00:00 
			
		
		
		
	Disallow registration with anon username
This commit is contained in:
		| @@ -98,7 +98,7 @@ func IsCanonicalName(name string) bool { | ||||
| } | ||||
|  | ||||
| func IsPossibleUsername(username string) bool { | ||||
| 	return UsernamePattern.MatchString(strings.TrimSpace(username)) | ||||
| 	return username != "anon" && UsernamePattern.MatchString(strings.TrimSpace(username)) | ||||
| } | ||||
|  | ||||
| // HyphaNameFromRq extracts hypha name from http request. You have to also pass the action which is embedded in the url or several actions. For url /hypha/hypha, the action would be "hypha". | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 handlerug
					handlerug