Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Fix wrong credentials error in login (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmontes authored Nov 3, 2020
1 parent b71d5eb commit 48b75a7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export class DotLoginComponent implements OnInit, OnDestroy {
this.dotRouterService.goToMain(user['editModeUrl']);
this.dotMessageService.setRelativeDateMessages(user.languageId);
},
(error: any) => {
if (this.isBadRequestOrUnathorized(error.status)) {
this.message = error.bodyJsonObject.errors[0].message;
(res: any) => {
if (this.isBadRequestOrUnathorized(res.status)) {
this.message = res.error.errors[0].message;
} else {
this.loggerService.debug(error);
this.loggerService.debug(res);
}
this.setFromState(false);
this.dotLoadingIndicatorService.hide();
Expand Down

0 comments on commit 48b75a7

Please sign in to comment.