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:
@@ -1317,7 +1317,7 @@ async function doLogin(e) {
|
|||||||
// failure — keeps user-existence enumeration consistent with the
|
// failure — keeps user-existence enumeration consistent with the
|
||||||
// existing /login behavior.
|
// existing /login behavior.
|
||||||
if (err.status === 404) {
|
if (err.status === 404) {
|
||||||
toast('Invalid credentials', 'error');
|
if (err.message) toast('Invalid credentials', 'error'); // '' = refus 2e couche, rien a afficher
|
||||||
} else {
|
} else {
|
||||||
toast(err.message, 'error');
|
toast(err.message, 'error');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user