cloudron 4.12.7 → 4.12.8
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/src/templates/Dockerfile.ejs +1 -1
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -261,7 +261,7 @@ async function authenticate(adminFqdn, username, password, options) {
|
|
|
261
261
|
if (askForTotpToken) totpToken = readlineSync.question('2FA Token: ', {});
|
|
262
262
|
|
|
263
263
|
const request = superagent.post(`https://${adminFqdn}/api/v1/cloudron/login`)
|
|
264
|
-
.timeout(
|
|
264
|
+
.timeout(60000)
|
|
265
265
|
.send({ username, password, totpToken })
|
|
266
266
|
.ok(() => true)
|
|
267
267
|
.set('User-Agent', 'cloudron-cli');
|
|
@@ -295,7 +295,7 @@ async function login(adminFqdn, options) {
|
|
|
295
295
|
let token = config.token();
|
|
296
296
|
if (token) { // check if the token is not expired
|
|
297
297
|
const [error, response] = await safe(superagent.get(`https://${adminFqdn}/api/v1/profile?access_token=${token}`)
|
|
298
|
-
.timeout(
|
|
298
|
+
.timeout(60000)
|
|
299
299
|
.ok(() => true));
|
|
300
300
|
if (error) return exit(error);
|
|
301
301
|
if (response.status === 200) {
|