From 649abc85e7551f153f434288c905e5ddc2202c2b Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Thu, 17 Sep 2026 06:27:15 +0100 Subject: [PATCH] fix(licence): le login n'affiche plus Invalid credentials quand la 2e couche refuse Co-Authored-By: Claude Opus 5 --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 91e7715..e3b8336 100644 --- a/js/app.js +++ b/js/app.js @@ -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'); }