summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-03-23 20:32:10 +0100
committerJoram Wilander <jwawilander@gmail.com>2018-03-23 15:32:10 -0400
commita8e0fc6c5d85a4007ab68fe867cb1a7bee4c93c3 (patch)
tree67894ef2f00568cc3bb7497d136925218d24c6d5 /cmd
parent1351874528b3dc8c77fe00ed438ae8a8d97c32a9 (diff)
downloadchat-a8e0fc6c5d85a4007ab68fe867cb1a7bee4c93c3.tar.gz
chat-a8e0fc6c5d85a4007ab68fe867cb1a7bee4c93c3.tar.bz2
chat-a8e0fc6c5d85a4007ab68fe867cb1a7bee4c93c3.zip
Changing the user-0 data to sysadmin and user-1 username to user-1 (#8494)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commands/sampledata.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/commands/sampledata.go b/cmd/commands/sampledata.go
index 5377f1153..910913eef 100644
--- a/cmd/commands/sampledata.go
+++ b/cmd/commands/sampledata.go
@@ -333,6 +333,13 @@ func createUser(idx int, teamMemberships int, channelMemberships int, teamsAndCh
firstName := fake.FirstName()
lastName := fake.LastName()
username := fmt.Sprintf("%s.%s", strings.ToLower(firstName), strings.ToLower(lastName))
+ if idx == 0 {
+ username = "sysadmin"
+ password = "sysadmin"
+ email = "sysadmin@sample.mattermost.com"
+ } else if idx == 1 {
+ username = "user-1"
+ }
position := fake.JobTitle()
roles := "system_user"
if idx%5 == 0 {