name members in Userpass

Change-Id: I902e2b4fe101ad76ab5eac56ab512b9536ad98f6
This commit is contained in:
mpl 2011-11-30 10:38:18 +01:00
parent cd7289a332
commit d3ff726d49
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func FromConfig(authConfig string) (AuthMode, os.Error) {
}
username := pieces[1]
password := pieces[2]
mode = &UserPass{username, password}
mode = &UserPass{Username: username, Password: password}
default:
return nil, fmt.Errorf("Unknown auth type: %q", authType)
}