Commit b9c64a36 authored by qorri_di's avatar qorri_di Committed by ardyardyaaan

Screen Maintenance versi hardcode

parent 4859914c
...@@ -98,7 +98,7 @@ class Login extends Component { ...@@ -98,7 +98,7 @@ class Login extends Component {
if (response.ok) { if (response.ok) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
// console.log(response.data.data // console.log(response.data.data
if (response.data.data.role_id === 185 || response.data.data.role_id === 1){ if (response.data.data.role_id === 185){
this.props.history.push('/maintenance') this.props.history.push('/maintenance')
} else { } else {
localStorage.setItem(Constant.TOKEN, response.data.data.token) localStorage.setItem(Constant.TOKEN, response.data.data.token)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment