Make setup route return tokenScopes
This is used by the dashboard logic during initial activation
This commit is contained in:
+6
-1
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user