cloudron-setup: add --setup-token

This commit is contained in:
Girish Ramakrishnan
2022-03-31 23:38:54 -07:00
parent 81728f4202
commit 37a4e8d5c5
2 changed files with 15 additions and 10 deletions

View File

@@ -8,7 +8,6 @@ exports = module.exports = {
getAppVersion,
registerWithLoginCredentials,
registerWithSetupToken,
updateCloudron,
purchaseApp,
@@ -342,15 +341,6 @@ async function registerWithLoginCredentials(options) {
await registerCloudron({ domain: settings.dashboardDomain(), accessToken: result.accessToken, version: constants.VERSION });
}
async function registerWithSetupToken(setupToken) {
assert.strictEqual(typeof setupToken, 'string');
const token = await settings.getAppstoreApiToken();
if (token) throw new BoxError(BoxError.CONFLICT, 'Cloudron is already registered');
await registerCloudron({ domain: settings.dashboardDomain(), setupToken: setupToken, version: constants.VERSION });
}
async function createTicket(info, auditSource) {
assert.strictEqual(typeof info, 'object');
assert.strictEqual(typeof info.email, 'string');