Browse Source

fix(login-component): [PM-24151] 'Message' property may be null or undefined. (#16225)

PM-24646-add-licensed-browser-release
Dave 3 months ago committed by GitHub
parent
commit
866f56f2d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      libs/auth/src/angular/login/login.component.ts

2
libs/auth/src/angular/login/login.component.ts

@ -266,7 +266,7 @@ export class LoginComponent implements OnInit, OnDestroy { @@ -266,7 +266,7 @@ export class LoginComponent implements OnInit, OnDestroy {
if (error instanceof ErrorResponse) {
switch (error.statusCode) {
case HttpStatusCode.BadRequest: {
if (error.message.toLowerCase().includes("username or password is incorrect")) {
if (error.message?.toLowerCase().includes("username or password is incorrect")) {
this.formGroup.controls.masterPassword.setErrors({
error: {
message: this.i18nService.t("invalidMasterPassword"),

Loading…
Cancel
Save