From c822ce0c90f04842ac7bff2b1c8793544c33c56a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Sep 2020 23:12:33 -0500 Subject: [PATCH] Fallback to BE response in login form --- app/soapbox/actions/auth.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 2a252ea23..7c0692c21 100644 --- a/app/soapbox/actions/auth.js +++ b/app/soapbox/actions/auth.js @@ -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')); }