Commit 361f4423 authored by Trisno's avatar Trisno

set base url email confirm

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