store the activation username

This commit is contained in:
Girish Ramakrishnan
2016-04-30 14:32:35 -07:00
parent 90719cd4d9
commit 8a3ad6c964

View File

@@ -56,7 +56,7 @@ function activate(req, res, next) {
if (error && error.reason === CloudronError.BAD_EMAIL) return next(new HttpError(400, 'Bad email'));
if (error) return next(new HttpError(500, error));
eventlog.add(eventlog.ACTION_ACTIVATE, req, { });
eventlog.add(eventlog.ACTION_ACTIVATE, req, { username: username });
// only in caas case do we have to notify the api server about activation
if (config.provider() !== 'caas') return next(new HttpSuccess(201, info));