From 7a9e709bd25407c1915e97e37bbf424ad5dc3ef5 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Wed, 9 Sep 2015 18:42:28 -0400 Subject: Removed pointless attempt to verify a new user's username --- api/user.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'api') diff --git a/api/user.go b/api/user.go index d69244fad..727accd1f 100644 --- a/api/user.go +++ b/api/user.go @@ -71,10 +71,7 @@ func createUser(c *Context, w http.ResponseWriter, r *http.Request) { return } - if !model.IsUsernameValid(user.Username) { - c.Err = model.NewAppError("createUser", "That username is invalid", "might be using a resrved username") - return - } + // the user's username is checked to be valid when they are saved to the database user.EmailVerified = false -- cgit v1.2.3-1-g7c22