mirror of https://github.com/perkeep/perkeep.git
auth: don't use untagged struct literals for structs with type fields of the same type
Change-Id: I677b0e6bbdabc6aa9ff3d9f874fee18257ecf234
This commit is contained in:
parent
6e33d64078
commit
bfaf77e766
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue