fix(licence): le login n'affiche plus Invalid credentials quand la 2e couche refuse

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-09-17 06:27:15 +01:00
parent d41dbfbb3a
commit 649abc85e7
+1 -1
View File
@@ -1317,7 +1317,7 @@ async function doLogin(e) {
// failure — keeps user-existence enumeration consistent with the
// existing /login behavior.
if (err.status === 404) {
toast('Invalid credentials', 'error');
if (err.message) toast('Invalid credentials', 'error'); // '' = refus 2e couche, rien a afficher
} else {
toast(err.message, 'error');
}