move authType into source

This commit is contained in:
Girish Ramakrishnan
2016-05-01 21:53:44 -07:00
parent ccc119ddec
commit b322f6805f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ function login(req, res, next) {
if (error && error.reason === AppsError.ACCESS_DENIED) return next(new HttpError(401, 'Forbidden'));
if (error) return next(new HttpError(500, error));
eventlog.add(eventlog.ACTION_USER_LOGIN, req, { authType: 'simpleauth', userId: result.user.id, username: result.user.username, clientId: req.body.clientId });
eventlog.add(eventlog.ACTION_USER_LOGIN, { authType: 'simpleauth', clientId: req.body.clientId }, { userId: result.user.id, username: result.user.username });
var tmp = {
accessToken: result.accessToken,