Merge pull request #99 from ssb-ngi-pointer/insert-patch
Use name, not os.Args[1] when creating user
This commit is contained in:
commit
b5e2ea6572
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue