diff --git a/services/web/app/src/Features/Authentication/AuthenticationController.js b/services/web/app/src/Features/Authentication/AuthenticationController.js index 1db3231c54..8587a3d16f 100644 --- a/services/web/app/src/Features/Authentication/AuthenticationController.js +++ b/services/web/app/src/Features/Authentication/AuthenticationController.js @@ -606,7 +606,11 @@ function _loginAsyncHandlers(req, user, anonymousAnalyticsId, isNewUser) { LoginRateLimiter.recordSuccessfulLogin(user.email, () => {}) AuthenticationController._recordSuccessfulLogin(user._id, () => {}) AuthenticationController.ipMatchCheck(req, user) - Analytics.recordEventForUser(user._id, 'user-logged-in') + Analytics.recordEventForUser(user._id, 'user-logged-in', { + source: req.session.saml + ? 'saml' + : req.user_info?.auth_provider || 'email-password', + }) Analytics.identifyUser(user._id, anonymousAnalyticsId, isNewUser) logger.log(