diff --git a/src/frontend/app/login/login.component.ts b/src/frontend/app/login/login.component.ts index d0b8dbbf58c6c000a9a7bdc880d94ce82cc92502..cc54c2945c3a0cd525e1d4d2123302ece5cbf02b 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); }