ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix login error display
Chocobozzz2345e1385312
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.tsindex 2567f21f15..af747b7fa0 100644--- a/client/src/app/+login/login.component.ts+++ b/client/src/app/+login/login.component.ts@@ -71,6 +71,12 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIningOnInit () {const snapshot = this.route.snapshot+ // Avoid undefined errors when accessing form error properties+ this.buildForm({+ username: LOGIN_USERNAME_VALIDATOR,+ password: LOGIN_PASSWORD_VALIDATOR+ })+this.serverConfig = snapshot.data.serverConfigif (snapshot.queryParams.externalAuthToken) {@@ -82,11 +88,6 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewInithis.externalAuthError = truereturn}-- this.buildForm({- username: LOGIN_USERNAME_VALIDATOR,- password: LOGIN_PASSWORD_VALIDATOR- })}ngAfterViewInit () {