Improve login messaging

This commit is contained in:
Alex Gleason 2020-09-29 21:35:10 -05:00
parent d0496caeb1
commit 88c12a72a9
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ export function logIn(username, password) {
if (error.response.data.error === 'mfa_required') {
throw error;
} else {
dispatch(snackbar.error('Invalid username or password.'));
dispatch(snackbar.error('Wrong username or password'));
}
throw error;
});

View file

@ -126,7 +126,7 @@ export const getAlerts = createSelector([getAlertsBase], (base) => {
key: item.get('key'),
className: `snackbar snackbar--${item.get('severity', 'info')}`,
activeClassName: 'snackbar--active',
dismissAfter: 5000,
dismissAfter: 6000,
});
});