|
|
|
@ -108,7 +108,14 @@ class Login extends Component {
|
|
|
|
|
let resData = result.data.data |
|
|
|
|
window.localStorage.setItem('menu_login', JSON.stringify(resData)); |
|
|
|
|
this.setState({ loader: false }) |
|
|
|
|
this.props.history.push("/dashboard"); |
|
|
|
|
// custom redirect home after login
|
|
|
|
|
if (role_id == 28) { |
|
|
|
|
this.props.history.push(`/dashboard-customer/37/48`); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
this.props.history.push("/dashboard"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
NotificationManager.error('Login Failed', 'Failed'); |
|
|
|
|
this.setState({ loader: false }) |
|
|
|
|