Add ownerId for apps
This tracks who installed the app.
This commit is contained in:
@@ -251,7 +251,7 @@ function activate(username, password, email, displayName, ip, auditSource, callb
|
||||
|
||||
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, { });
|
||||
|
||||
callback(null, { token: result.accessToken, expires: result.expires });
|
||||
callback(null, { userId: userObject.id, token: result.accessToken, expires: result.expires });
|
||||
|
||||
setTimeout(cloudron.onActivated, 3000); // hack for now to not block the above http response
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user