Support user.login.ghost event type
This commit is contained in:
@@ -3343,6 +3343,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
var ACTION_UPDATE_FINISH = 'cloudron.update.finish';
|
||||
var ACTION_USER_ADD = 'user.add';
|
||||
var ACTION_USER_LOGIN = 'user.login';
|
||||
var ACTION_USER_LOGIN_GHOST = 'user.login.ghost';
|
||||
var ACTION_USER_LOGOUT = 'user.logout';
|
||||
var ACTION_USER_REMOVE = 'user.remove';
|
||||
var ACTION_USER_UPDATE = 'user.update';
|
||||
@@ -3662,6 +3663,9 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
case ACTION_USER_LOGIN:
|
||||
return (data.user ? data.user.username : data.userId) + ' logged in';
|
||||
|
||||
case ACTION_USER_LOGIN_GHOST:
|
||||
return (data.user ? data.user.username : data.userId) + ' was impersonated';
|
||||
|
||||
case ACTION_USER_LOGOUT:
|
||||
return (data.user ? data.user.username : data.userId) + ' logged out';
|
||||
|
||||
@@ -3692,7 +3696,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
|
||||
default: return eventLog.action;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Client.prototype.eventLogSource = function (eventLog) {
|
||||
var source = eventLog.source;
|
||||
@@ -3707,7 +3711,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
client = new Client();
|
||||
|
||||
Reference in New Issue
Block a user