@homecloud-platform/sdk 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client.js +2 -2
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -375,8 +375,8 @@ class HomeCloud {
|
|
|
375
375
|
return data;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
async login(username, password, { mfaCode } = {}) {
|
|
379
|
-
const body = { username, password };
|
|
378
|
+
async login(account, username, password, { mfaCode } = {}) {
|
|
379
|
+
const body = { account, username, password };
|
|
380
380
|
if (mfaCode) body.mfa_code = mfaCode;
|
|
381
381
|
const data = await this.consoleRequest("POST", "auth/login", {
|
|
382
382
|
json: body,
|