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
+2 -1
View File
@@ -10,9 +10,10 @@ exports = module.exports = {
SCOPE_MAIL: 'mail',
SCOPE_PROFILE: 'profile',
SCOPE_SETTINGS: 'settings',
SCOPE_SUBSCRIPTION: 'subscription',
SCOPE_USERS_READ: 'users:read',
SCOPE_USERS_MANAGE: 'users:manage',
VALID_SCOPES: [ 'apps', 'clients', 'cloudron', 'domains', 'mail', 'profile', 'settings', 'users' ], // keep this sorted
VALID_SCOPES: [ 'apps', 'clients', 'cloudron', 'domains', 'mail', 'profile', 'settings', 'subscription', 'users' ], // keep this sorted
SCOPE_ANY: '*',