Fallback to BE response in login form

This commit is contained in:
Alex Gleason 2020-09-29 23:12:33 -05:00
parent b9d484623c
commit c822ce0c90
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -135,6 +135,8 @@ export function logIn(username, password) {
}).catch(error => {
if (error.response.data.error === 'mfa_required') {
throw error;
} else if(error.response.data.error) {
dispatch(snackbar.error(error.response.data.error));
} else {
dispatch(snackbar.error('Wrong username or password'));
}