Merge pull request #99 from ssb-ngi-pointer/insert-patch

Use name, not os.Args[1] when creating user
This commit is contained in:
Henry 2021-03-25 08:44:44 +01:00 committed by GitHub
commit b5e2ea6572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -101,10 +101,10 @@ func main() {
}
ctx := context.Background()
mid, err := db.Members.Add(ctx, os.Args[1], *pubKey, role)
mid, err := db.Members.Add(ctx, name, *pubKey, role)
check(err)
err = db.AuthFallback.Create(ctx, mid, os.Args[1], bytePassword)
err = db.AuthFallback.Create(ctx, mid, name, bytePassword)
check(err)
fmt.Fprintf(os.Stderr, "Created member %s (%s) with ID %d\n", name, role, mid)