PM-7392 - Previously, if a security stamp was invalid, the session was marked as expired. Restore that functionality.

This commit is contained in:
Jared Snider 2024-05-09 13:31:29 -04:00
parent c700e05fd5
commit 1e6f187960
No known key found for this signature in database
GPG Key ID: A149DDD612516286
2 changed files with 16 additions and 0 deletions

View File

@ -573,6 +573,14 @@ export class AppComponent implements OnInit, OnDestroy {
let toastOptions: ToastOptions;
switch (logoutReason) {
case "invalidSecurityStamp": {
toastOptions = {
variant: "warning",
title: this.i18nService.t("loggedOut"),
message: this.i18nService.t("loginExpired"),
};
break;
}
case "sessionExpired": {
toastOptions = {
variant: "warning",

View File

@ -267,6 +267,14 @@ export class AppComponent implements OnDestroy, OnInit {
private async displayLogoutReason(logoutReason: LogoutReason) {
let toastOptions: ToastOptions;
switch (logoutReason) {
case "invalidSecurityStamp": {
toastOptions = {
variant: "warning",
title: this.i18nService.t("loggedOut"),
message: this.i18nService.t("loginExpired"),
};
break;
}
case "sessionExpired": {
toastOptions = {
variant: "warning",