Api refactoring fixes (#372)

* Fix JS error when logging in with bad credentials

* Remove duplicate error message if bad credentials

Error is already nicely displayed in LoginForm
This commit is contained in:
sephrat authored and GitHub committed 2021-04-30 08:43:30 -08:00
1 parent 1dc051f562
commit d2e56cf233
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export const userAPI = {
let response = await apiReq.post(
authURLs.token,
formData,
function() { return i18n.t('user.incorrect-username-or-password'); },
null,
function() { return i18n.t('user.user-successfully-logged-in'); }
);
return response;