Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions base.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func (api *API) CallWithErrorParse(method string, params interface{}, result int

// Login Calls "user.login" API method and fills api.Auth field.
// This method modifies API structure and should not be called concurrently with other methods.
func (api *API) Login(user, password string) (auth string, err error) {
params := map[string]string{"user": user, "password": password}
func (api *API) Login(username, password string) (auth string, err error) {
params := map[string]string{"username": username, "password": password}
response, err := api.CallWithError("user.login", params)
if err != nil {
return
Expand Down