From 2054a63512b43d9597ddc13a60ead2167f137e1c Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Tue, 13 Feb 2024 09:54:58 +0100
Subject: [PATCH] fix(login): display both fields in error when connection
 fails

---
 src/app/login/login.component.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html
index c82e2790f..71e4d3396 100644
--- a/src/app/login/login.component.html
+++ b/src/app/login/login.component.html
@@ -36,7 +36,7 @@
               ? 'Le mot de passe doit obligatoirement contenir : 8&nbsp;caractères, une majuscule, une minuscule, un caractère spécial et un chiffre'
               : ''
           "
-          [status]="f.password.value ? (f.password.invalid ? 'error' : 'success') : 'info'"
+          [status]="f.password.value ? (f.password.invalid || authFailed ? 'error' : 'success') : 'info'"
           [value]="f.password.value"
           (valueChange)="onChange(); f.password.setValue($event)"
         />
-- 
GitLab