auth: don't use untagged struct literals for structs with type fields of the same type

Change-Id: I677b0e6bbdabc6aa9ff3d9f874fee18257ecf234
This commit is contained in:
Brad Fitzpatrick 2014-04-05 20:19:32 -07:00
parent 6e33d64078
commit bfaf77e766
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,10 @@ func newLocalhostAuth(string) (AuthMode, error) {
func newDevAuth(pw string) (AuthMode, error) { func newDevAuth(pw string) (AuthMode, error) {
// the vivify mode password is automatically set to "vivi" + Password // 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) { func newUserPassAuth(arg string) (AuthMode, error) {