diff --git a/lib/api.js b/lib/api.js index 2ca44f0..99660fc 100644 --- a/lib/api.js +++ b/lib/api.js @@ -88,7 +88,7 @@ class Zabbix { async login () { try { const result = await this.request('user.login', { - user: this.user, + username: this.user, password: this.password }) this.auth = result