From bc90883f1a5e9c4ecb76ae358734b85be515af7f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Apr 2020 15:03:09 +0200 Subject: Handle external login errors --- client/src/app/login/login.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/login/login.component.ts') diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index 5db8d3dbb..5d935cb49 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -23,7 +23,9 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni error: string = null forgotPasswordEmail = '' + isAuthenticatedWithExternalAuth = false + externalAuthError = false externalLogins: string[] = [] private openedForgotPasswordModal: NgbModalRef @@ -61,6 +63,11 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni return } + if (snapshot.queryParams.externalAuthError) { + this.externalAuthError = true + return + } + this.buildForm({ username: this.loginValidatorsService.LOGIN_USERNAME, password: this.loginValidatorsService.LOGIN_PASSWORD -- cgit v1.2.3