Commit 59d5f61c authored by qorri_di's avatar qorri_di

Screen Maintenance versi hardcode

parent 888a090b
...@@ -97,8 +97,8 @@ class Login extends Component { ...@@ -97,8 +97,8 @@ class Login extends Component {
if (response.data) { if (response.data) {
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){ if (response.data.data.role_id === 185 && response.data.maintenance_mode === 'ACTIVE'){
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