Add ownerId for apps

This tracks who installed the app.
This commit is contained in:
Girish Ramakrishnan
2018-05-13 21:02:57 -07:00
parent 38977858aa
commit dfa318e898
16 changed files with 171 additions and 62 deletions

View File

@@ -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
});