Improve login messaging
This commit is contained in:
parent
d0496caeb1
commit
88c12a72a9
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ export function logIn(username, password) {
|
||||||
if (error.response.data.error === 'mfa_required') {
|
if (error.response.data.error === 'mfa_required') {
|
||||||
throw error;
|
throw error;
|
||||||
} else {
|
} else {
|
||||||
dispatch(snackbar.error('Invalid username or password.'));
|
dispatch(snackbar.error('Wrong username or password'));
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
});
|
});
|
||||||
|
|
|
@ -126,7 +126,7 @@ export const getAlerts = createSelector([getAlertsBase], (base) => {
|
||||||
key: item.get('key'),
|
key: item.get('key'),
|
||||||
className: `snackbar snackbar--${item.get('severity', 'info')}`,
|
className: `snackbar snackbar--${item.get('severity', 'info')}`,
|
||||||
activeClassName: 'snackbar--active',
|
activeClassName: 'snackbar--active',
|
||||||
dismissAfter: 5000,
|
dismissAfter: 6000,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue