Login form: show a better error message.

master
Tom Hacohen 7 years ago
parent 94214c9617
commit 5842b7074a

@ -338,7 +338,7 @@ class BaseNetwork {
if (response.ok) {
resolve(body);
} else {
reject(new HTTPError(json.detail));
reject(new HTTPError(json.detail || json.non_field_errors));
}
}).catch((error) => {
reject(error);

Loading…
Cancel
Save