From bfaf77e7666b2306467bd2d0637ff28250332e30 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 5 Apr 2014 20:19:32 -0700 Subject: [PATCH] auth: don't use untagged struct literals for structs with type fields of the same type Change-Id: I677b0e6bbdabc6aa9ff3d9f874fee18257ecf234 --- pkg/auth/auth.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index be3d4c906..09c6c0ed3 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -102,7 +102,10 @@ func newLocalhostAuth(string) (AuthMode, error) { func newDevAuth(pw string) (AuthMode, error) { // the vivify mode password is automatically set to "vivi" + Password - return &DevAuth{pw, "vivi" + pw}, nil + return &DevAuth{ + Password: pw, + VivifyPass: "vivi" + pw, + }, nil } func newUserPassAuth(arg string) (AuthMode, error) {