rework cloudron registration flow

we now route all the registration, login etc via the backend

subscription management are also in a separate scope now
This commit is contained in:
Girish Ramakrishnan
2019-05-03 16:27:47 -07:00
parent 7e7e067b5b
commit 3246edd5a8
15 changed files with 259 additions and 265 deletions

View File

@@ -16,7 +16,6 @@ let async = require('async'),
superagent = require('superagent'),
server = require('../../server.js'),
settings = require('../../settings.js'),
settingsdb = require('../../settingsdb.js'),
tokendb = require('../../tokendb.js');
var SERVER_URL = 'http://localhost:' + config.get('port');
@@ -34,8 +33,7 @@ function setup(done) {
async.series([
server.start.bind(server),
database._clear,
settings.setBackupConfig.bind(null, { provider: 'filesystem', backupFolder: '/tmp', format: 'tgz' }),
settingsdb.set.bind(null, settings.APPSTORE_CONFIG_KEY, JSON.stringify({ userId: 'USER_ID', cloudronId: 'CLOUDRON_ID', token: 'ACCESS_TOKEN' }))
settings.setBackupConfig.bind(null, { provider: 'filesystem', backupFolder: '/tmp', format: 'tgz' })
], done);
}