summaryrefslogtreecommitdiffstats
path: root/api/status_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-04-18 17:37:25 -0400
committerChristopher Speller <crspeller@gmail.com>2017-04-18 17:37:25 -0400
commit5398c82e1b80c3160974e01afabbfd1c2a2420a7 (patch)
tree74c9e48dcfe1c49b8225becb0daf4817d46f4edb /api/status_test.go
parent86c7e7cacd0608648ac65ff32d21b948c7527715 (diff)
downloadchat-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 'api/status_test.go')
-rw-r--r--api/status_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/status_test.go b/api/status_test.go
index 7aa6a2299..ba276da06 100644
--- a/api/status_test.go
+++ b/api/status_test.go
@@ -32,12 +32,12 @@ func TestStatuses(t *testing.T) {
team := model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN}
rteam, _ := Client.CreateTeam(&team)
- user := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1", Username: "n" + model.NewId()}
+ user := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1"}
ruser := Client.Must(Client.CreateUser(&user, "")).Data.(*model.User)
LinkUserToTeam(ruser, rteam.Data.(*model.Team))
store.Must(app.Srv.Store.User().VerifyEmail(ruser.Id))
- user2 := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1", Username: "n" + model.NewId()}
+ user2 := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1"}
ruser2 := Client.Must(Client.CreateUser(&user2, "")).Data.(*model.User)
LinkUserToTeam(ruser2, rteam.Data.(*model.Team))
store.Must(app.Srv.Store.User().VerifyEmail(ruser2.Id))