sforkowany z mirror/soapbox
Improve login messaging
rodzic
d0496caeb1
commit
88c12a72a9
|
@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue