Skip to content

Commit

Permalink
Fixed usage of basename in vote (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrenkert authored Feb 6, 2025
1 parent a75e691 commit 47d9eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vote/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func MassLogin(ctx context.Context, clients []*client.Client, meetingID int, bas

client := clients[i]

username := fmt.Sprintf("dummy%d", i+1)
username := fmt.Sprintf("%s%d", basename, i+1)
if meetingID > 0 {
username = fmt.Sprintf("m%d%s%d", meetingID, username, i+1)
username = fmt.Sprintf("m%d%s", meetingID, username)
}

if err := client.LoginWithCredentials(ctx, username, password); err != nil {
Expand Down

0 comments on commit 47d9eda

Please sign in to comment.