mirror of https://github.com/perkeep/perkeep.git
bugfix in auth; mode was not set by config in localhost case
Change-Id: I5349af00d7629ca77de73dd886ba44d6bbc56da0
This commit is contained in:
parent
03a8e7370b
commit
3117265b61
|
@ -65,9 +65,9 @@ func FromConfig(authConfig string) (AuthMode, error) {
|
|||
|
||||
switch authType {
|
||||
case "none":
|
||||
return None{}, nil
|
||||
mode = None{}
|
||||
case "localhost":
|
||||
return Localhost{}, nil
|
||||
mode = Localhost{}
|
||||
case "userpass":
|
||||
if len(pieces) < 3 {
|
||||
return nil, fmt.Errorf("Wrong userpass auth string; needs to be \"userpass:user:password\"")
|
||||
|
|
Loading…
Reference in New Issue