cloudron 5.3.4 → 5.4.0
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/actions.js +2 -2
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -343,7 +343,7 @@ async function authenticate(adminFqdn, username, password, options) {
|
|
|
343
343
|
const { rejectUnauthorized, askForTotpToken } = options;
|
|
344
344
|
if (askForTotpToken) totpToken = readlineSync.question('2FA Token: ', {});
|
|
345
345
|
|
|
346
|
-
const request = superagent.post(`https://${adminFqdn}/api/v1/
|
|
346
|
+
const request = superagent.post(`https://${adminFqdn}/api/v1/auth/login`)
|
|
347
347
|
.timeout(60000)
|
|
348
348
|
.send({ username, password, totpToken })
|
|
349
349
|
.ok(() => true)
|
|
@@ -948,7 +948,7 @@ async function logs(localOptions, cmd) {
|
|
|
948
948
|
|
|
949
949
|
if (typeof options.system === 'boolean' && options.system) {
|
|
950
950
|
// box
|
|
951
|
-
apiPath = `https://${adminFqdn}/api/v1/
|
|
951
|
+
apiPath = `https://${adminFqdn}/api/v1/system/${ tail ? 'logstream' : 'logs' }/box`;
|
|
952
952
|
} else if (typeof options.system === 'string') {
|
|
953
953
|
// services
|
|
954
954
|
apiPath = `https://${adminFqdn}/api/v1/services/${options.system}/${ tail ? 'logstream' : 'logs' }`;
|