From 3d10d260aea0b9faf399d009ed716191a915ade0 Mon Sep 17 00:00:00 2001 From: Sonja Galovic Date: Thu, 28 Apr 2022 17:30:19 +0200 Subject: Redizajn register modala --- frontend/src/app/_modals/login-modal/login-modal.component.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'frontend/src/app/_modals/login-modal/login-modal.component.ts') diff --git a/frontend/src/app/_modals/login-modal/login-modal.component.ts b/frontend/src/app/_modals/login-modal/login-modal.component.ts index f69e1cff..062a0550 100644 --- a/frontend/src/app/_modals/login-modal/login-modal.component.ts +++ b/frontend/src/app/_modals/login-modal/login-modal.component.ts @@ -44,6 +44,7 @@ export class LoginModalComponent implements OnInit { this.passwordInput.nativeElement.type = "password"; } else { + this.wrongCreds = false; this.authService.authenticate(response); (this.closeButton?.nativeElement).click(); this.userInfoService.getUserInfo().subscribe((response) => { @@ -71,4 +72,8 @@ export class LoginModalComponent implements OnInit { else this.passwordInput.nativeElement.type = "password"; } + + cleanWarnings() { + this.wrongCreds = false; + } } -- cgit v1.2.3