From 4f7f6ebe114a7e76b1b7b21c094a00bb5c01c4c1 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Thu, 5 Nov 2020 15:18:09 +0100 Subject: [PATCH] FEAT #15181 TIME 0:50 Redirect when sso connection problem --- src/frontend/app/login/login.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/app/login/login.component.ts b/src/frontend/app/login/login.component.ts index d0b8dbbf58c..cc54c2945c3 100644 --- a/src/frontend/app/login/login.component.ts +++ b/src/frontend/app/login/login.component.ts @@ -100,6 +100,8 @@ export class LoginComponent implements OnInit { this.notify.error(this.translate.instant('lang.wrongLoginPassword')); } else if (err.error.errors === 'Account Locked') { this.notify.error(this.translate.instant('lang.accountLocked') + ' ' + this.timeLimit.transform(err.error.date)); + } else if (this.authService.authMode === 'sso' && err.error.errors === 'Authentication Failed : login not present in header' && !this.functionsService.empty(this.authService.authUri)) { + window.location.href = this.authService.authUri; } else { this.notify.handleSoftErrors(err); } -- GitLab