Commit 361f4423 authored by Trisno's avatar Trisno

set base url email confirm

parent aa570bb4
......@@ -46,7 +46,7 @@ class EmailConfirmation extends React.Component {
"app_version": this.props.app_version,
"verification_code": this.state.confirmation_number
}
Axios.post(BASE_URL_LOGIN, params).then(res => {
Axios.post(this.props.BASE_URL+'crm/v2/auth/login', params).then(res => {
// console.log('EMAIL CONFIRM : ' + JSON.stringify(res))
let emailConfirmProps = {
isEmailverif: false
......@@ -74,7 +74,7 @@ class EmailConfirmation extends React.Component {
})
}).catch(error => {
let response = error.response.data;
Alert.alert(response.msg);
Alert.alert('',response.msg);
this.setState({
spinner: false,
})
......@@ -148,7 +148,7 @@ class EmailConfirmation extends React.Component {
"app_version": this.props.app_version,
}
// console.log(params)
Axios.post(BASE_URL_LOGIN, params).then(res => {
Axios.post(this.props.BASE_URL+'crm/v2/auth/login', params).then(res => {
this.setState({
spinner: false,
......
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