Commit f4dfaacb by Giang Tran

edit refistor

parent 7e55df21
...@@ -59,7 +59,7 @@ const ConfirmOTP = (propsa) => { ...@@ -59,7 +59,7 @@ const ConfirmOTP = (propsa) => {
platform: Platform.OS, platform: Platform.OS,
receiver_name: propsa.route.params.email, receiver_name: propsa.route.params.email,
otp: encryptRSAString(value), otp: encryptRSAString(value),
type: 'CUSTOMER_VERIFY', type: 'CUSTOMER_REGISTER',
}); });
if (res.data.code == 200) { if (res.data.code == 200) {
...@@ -93,7 +93,7 @@ const ConfirmOTP = (propsa) => { ...@@ -93,7 +93,7 @@ const ConfirmOTP = (propsa) => {
if (res.data.code == 200 && res.data.data) { if (res.data.code == 200 && res.data.data) {
showAlert( showAlert(
TYPE.WARN, TYPE.SUCCESS,
I18n.t('Notification'), I18n.t('Notification'),
I18n.t('RegisterAccountSuccess'), I18n.t('RegisterAccountSuccess'),
); );
...@@ -114,7 +114,7 @@ const ConfirmOTP = (propsa) => { ...@@ -114,7 +114,7 @@ const ConfirmOTP = (propsa) => {
const res = await getOTPApi({ const res = await getOTPApi({
platform: Platform.OS, platform: Platform.OS,
otp_by: propsa.route.params.email, otp_by: propsa.route.params.email,
type: 'CUSTOMER_VERIFY', type: 'CUSTOMER_REGISTER',
}); });
propsa.hideLoading(); propsa.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
......
...@@ -47,7 +47,7 @@ const Registor = (props) => { ...@@ -47,7 +47,7 @@ const Registor = (props) => {
const res = await getOTPApi({ const res = await getOTPApi({
platform: Platform.OS, platform: Platform.OS,
otp_by: email, otp_by: email,
type: 'CUSTOMER_VERIFY', type: 'CUSTOMER_REGISTER',
}); });
props.hideLoading(); props.hideLoading();
console.log(res); console.log(res);
......
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