Make setup route return tokenScopes

This is used by the dashboard logic during initial activation
This commit is contained in:
Girish Ramakrishnan
2018-06-29 08:27:33 -07:00
parent 35c9e99102
commit 9aa74c99fc
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -251,7 +251,12 @@ function activate(username, password, email, displayName, ip, auditSource, callb
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, { });
callback(null, { userId: userObject.id, token: result.accessToken, expires: result.expires });
callback(null, {
userId: userObject.id,
token: result.accessToken,
tokenScopes: result.tokenScopes,
expires: result.expires
});
setTimeout(cloudron.onActivated, 3000); // hack for now to not block the above http response
});