diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-04-18 17:37:25 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-04-18 17:37:25 -0400 |
commit | 5398c82e1b80c3160974e01afabbfd1c2a2420a7 (patch) | |
tree | 74c9e48dcfe1c49b8225becb0daf4817d46f4edb /app/user_test.go | |
parent | 86c7e7cacd0608648ac65ff32d21b948c7527715 (diff) | |
download | chat-5398c82e1b80c3160974e01afabbfd1c2a2420a7.tar.gz chat-5398c82e1b80c3160974e01afabbfd1c2a2420a7.tar.bz2 chat-5398c82e1b80c3160974e01afabbfd1c2a2420a7.zip |
Revert "Usernames must start with a letter (#5581)"
This reverts commit 2e911b77c3386833f8f0cea82c7b6b3e5583a08e.
Diffstat (limited to 'app/user_test.go')
-rw-r--r-- | app/user_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/user_test.go b/app/user_test.go index 4cd26e729..bc5d36ef5 100644 --- a/app/user_test.go +++ b/app/user_test.go @@ -5,9 +5,9 @@ package app import ( "bytes" - "encoding/json" "image" "image/color" + "encoding/json" "math/rand" "strings" "testing" @@ -67,7 +67,7 @@ func TestCheckUserDomain(t *testing.T) { func TestCreateOAuthUser(t *testing.T) { th := Setup().InitBasic() r := rand.New(rand.NewSource(time.Now().UnixNano())) - glUser := oauthgitlab.GitLabUser{Id: int64(r.Intn(1000)), Username: "joram" + model.NewId(), Email: model.NewId() + "@simulator.amazonses.com", Name: "Joram Wilander"} + glUser := oauthgitlab.GitLabUser{Id: int64(r.Intn(1000)), Username: model.NewId(), Email: model.NewId() + "@simulator.amazonses.com", Name: "Joram Wilander"} json := glUser.ToJson() user, err := CreateOAuthUser(model.USER_AUTH_SERVICE_GITLAB, strings.NewReader(json), th.BasicTeam.Id) |