diff options
-rw-r--r-- | client/package.json | 2 | ||||
-rw-r--r-- | client/src/app/+login/login.component.ts | 11 | ||||
-rw-r--r-- | client/yarn.lock | 8 |
3 files changed, 11 insertions, 10 deletions
diff --git a/client/package.json b/client/package.json index 22a270c5d..ea33b9fa9 100644 --- a/client/package.json +++ b/client/package.json | |||
@@ -45,7 +45,7 @@ | |||
45 | "@angular/service-worker": "^11.0.1", | 45 | "@angular/service-worker": "^11.0.1", |
46 | "@neos21/bootstrap3-glyphicons": "^1.0.1", | 46 | "@neos21/bootstrap3-glyphicons": "^1.0.1", |
47 | "@ng-bootstrap/ng-bootstrap": "^8.0.0", | 47 | "@ng-bootstrap/ng-bootstrap": "^8.0.0", |
48 | "@ng-select/ng-select": "^5.0.0", | 48 | "@ng-select/ng-select": "^5.0.11", |
49 | "@ngx-i18nsupport/ngx-i18nsupport": "^1.1.6", | 49 | "@ngx-i18nsupport/ngx-i18nsupport": "^1.1.6", |
50 | "@ngx-i18nsupport/tooling": "^8.0.3", | 50 | "@ngx-i18nsupport/tooling": "^8.0.3", |
51 | "@ngx-loading-bar/core": "^5.0.0", | 51 | "@ngx-loading-bar/core": "^5.0.0", |
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index 2567f21f1..af747b7fa 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, AfterViewIni | |||
71 | ngOnInit () { | 71 | ngOnInit () { |
72 | const snapshot = this.route.snapshot | 72 | const snapshot = this.route.snapshot |
73 | 73 | ||
74 | // Avoid undefined errors when accessing form error properties | ||
75 | this.buildForm({ | ||
76 | username: LOGIN_USERNAME_VALIDATOR, | ||
77 | password: LOGIN_PASSWORD_VALIDATOR | ||
78 | }) | ||
79 | |||
74 | this.serverConfig = snapshot.data.serverConfig | 80 | this.serverConfig = snapshot.data.serverConfig |
75 | 81 | ||
76 | if (snapshot.queryParams.externalAuthToken) { | 82 | if (snapshot.queryParams.externalAuthToken) { |
@@ -82,11 +88,6 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
82 | this.externalAuthError = true | 88 | this.externalAuthError = true |
83 | return | 89 | return |
84 | } | 90 | } |
85 | |||
86 | this.buildForm({ | ||
87 | username: LOGIN_USERNAME_VALIDATOR, | ||
88 | password: LOGIN_PASSWORD_VALIDATOR | ||
89 | }) | ||
90 | } | 91 | } |
91 | 92 | ||
92 | ngAfterViewInit () { | 93 | ngAfterViewInit () { |
diff --git a/client/yarn.lock b/client/yarn.lock index a57700986..d27cdaec8 100644 --- a/client/yarn.lock +++ b/client/yarn.lock | |||
@@ -1160,10 +1160,10 @@ | |||
1160 | dependencies: | 1160 | dependencies: |
1161 | tslib "^2.0.0" | 1161 | tslib "^2.0.0" |
1162 | 1162 | ||
1163 | "@ng-select/ng-select@^5.0.0": | 1163 | "@ng-select/ng-select@^5.0.11": |
1164 | version "5.0.9" | 1164 | version "5.0.11" |
1165 | resolved "https://registry.yarnpkg.com/@ng-select/ng-select/-/ng-select-5.0.9.tgz#3b52b49e04280fdddeacd59e79f381219bd2cf16" | 1165 | resolved "https://registry.yarnpkg.com/@ng-select/ng-select/-/ng-select-5.0.11.tgz#5068bb7abdca2177ad006b24664865b9761adc11" |
1166 | integrity sha512-YZeSAiS8/Nx/eHZJPmOOYL8YmcvSq+dr1P8WIrsKmRA7mueorBpPc5xlUj+nLQbpLtsiQvdWDQspf/ykOvD/lA== | 1166 | integrity sha512-D0ZJcdjCAPMgdNTqKoo4kWaYYK99BdqINjqd0QjuUQkl6TSTS3nzEKDHKzdsfP4ZHVkGp+Q3ONUdDv65WK18Rw== |
1167 | dependencies: | 1167 | dependencies: |
1168 | tslib "^2.0.0" | 1168 | tslib "^2.0.0" |
1169 | 1169 | ||