Skip to content

Commit

Permalink
fix: do not split username by @
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Nov 13, 2024
1 parent b2a20a5 commit c29c407
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ func getUserCredentials(usersFilePath string, _ *loadtest.Config) ([]user, error
password := split[1]
// Quick and dirty hack to extract username from email.
// This is not terribly important to be correct.
username := strings.Split(email, "@")[0]
username = strings.Replace(username, "+", "-", -1)
// username := strings.Split(email, "@")[0]
// username = strings.Replace(username, "+", "-", -1)
username := email
authService := userentity.AuthenticationTypeMattermost

// Check if the user has a custom authentication type. Custom authentication types are
Expand Down

0 comments on commit c29c407

Please sign in to comment.