cloudron-setup: add --setup-token
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user