From 7c902e61d659827b00833cea6d9f860249bf1b5e Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 19 Nov 2021 06:01:28 +1000 Subject: [PATCH] [Key Connector] Add firstSsoLogin event (#1305) * Add firstSsoLogin event * Update jslib --- jslib | 2 +- src/app/services/event.service.ts | 4 ++++ src/locales/en/messages.json | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/jslib b/jslib index 9b7aaa272d..10fa164ffc 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 9b7aaa272d2ba226952c8f95c6354f952a66faa0 +Subproject commit 10fa164ffc6f61e2264633ca4874473fa6afb4f4 diff --git a/src/app/services/event.service.ts b/src/app/services/event.service.ts index 607e5201ba..925d69df17 100644 --- a/src/app/services/event.service.ts +++ b/src/app/services/event.service.ts @@ -213,6 +213,10 @@ export class EventService { msg = this.i18nService.t('eventResetSsoLink', this.formatOrgUserId(ev)); humanReadableMsg = this.i18nService.t('eventResetSsoLink', this.getShortId(ev.organizationUserId)); break; + case EventType.OrganizationUser_FirstSsoLogin: + msg = this.i18nService.t('firstSsoLogin', this.formatOrgUserId(ev)); + humanReadableMsg = this.i18nService.t('firstSsoLogin', this.getShortId(ev.organizationUserId)); + break; // Org case EventType.Organization_Updated: msg = humanReadableMsg = this.i18nService.t('editedOrgSettings'); diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index ccac6261b2..6a9adc4708 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -4048,6 +4048,15 @@ } } }, + "firstSsoLogin": { + "message": "$ID$ logged in using Sso for the first time", + "placeholders": { + "id": { + "content": "$1", + "example": "John Smith" + } + } + }, "resetPassword": { "message": "Reset Password" },