summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-09 18:42:28 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-09 18:42:28 -0400
commit7a9e709bd25407c1915e97e37bbf424ad5dc3ef5 (patch)
tree5b1de241f963d88a6e5415e302c18f292ffab30a /api
parente6d4661aba8c25901329bd3fcff8e01ddc6ae600 (diff)
downloadchat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.tar.gz
chat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.tar.bz2
chat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.zip
Removed pointless attempt to verify a new user's username
Diffstat (limited to 'api')
-rw-r--r--api/user.go5
1 files changed, 1 insertions, 4 deletions
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