eventlog: fix display of directoryserver login event

This commit is contained in:
Girish Ramakrishnan
2024-06-24 21:42:03 +02:00
parent e909b6e643
commit d13bf9ac74

View File

@@ -3978,9 +3978,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
case ACTION_USER_LOGIN:
if (data.mailboxId) {
return 'User ' + (data.user ? data.user.username : data.userId) + ' logged in to mailbox ' + data.mailboxId;
} else {
} else if (data.appId) {
app = this.getCachedAppSync(data.appId);
return 'User ' + (data.user ? data.user.username : data.userId) + ' logged in to ' + (app ? app.fqdn : data.appId);
} else { // can happen with directoryserver
return 'User ' + (data.user ? data.user.username : data.userId) + ' authenticated';
}
case ACTION_USER_LOGIN_GHOST: