Merge pull request 'upd: kode verification' (#36) from amalia/04-sept-25 into join
Reviewed-on: bip/mobile-darmasaba#36
This commit is contained in:
@@ -27,10 +27,12 @@ export default function Index() {
|
|||||||
<View style={Styles.wrapLogin} >
|
<View style={Styles.wrapLogin} >
|
||||||
<View style={{ alignItems: "center", marginVertical: 50 }}>
|
<View style={{ alignItems: "center", marginVertical: 50 }}>
|
||||||
<Image
|
<Image
|
||||||
source={require("../assets/images/splash-icon.png")}
|
source={require("../assets/images/logo.png")}
|
||||||
style={{ width: 130, height: 130 }}
|
style={[{ width: 300, height: 150 }]}
|
||||||
|
width={270}
|
||||||
|
height={110}
|
||||||
/>
|
/>
|
||||||
<Text style={[Styles.textSubtitle]}>PERBEKEL DARMASABA</Text>
|
{/* <Text style={[Styles.textSubtitle]}>PERBEKEL DARMASABA</Text> */}
|
||||||
</View>
|
</View>
|
||||||
<View style={[Styles.mb30]}>
|
<View style={[Styles.mb30]}>
|
||||||
<Text style={[Styles.textDefaultSemiBold]}>Verifikasi Nomor Telepon</Text>
|
<Text style={[Styles.textDefaultSemiBold]}>Verifikasi Nomor Telepon</Text>
|
||||||
|
|||||||
@@ -57,15 +57,17 @@ export default function ViewVerification({ phone, otp }: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<StatusBar style={Platform.OS === 'ios' ? 'auto' : 'light'} translucent={false} backgroundColor="black"/>
|
<StatusBar style={Platform.OS === 'ios' ? 'auto' : 'light'} translucent={false} backgroundColor="black" />
|
||||||
<ToastCustom />
|
<ToastCustom />
|
||||||
<View style={Styles.wrapLogin} >
|
<View style={Styles.wrapLogin} >
|
||||||
<View style={{ alignItems: "center", marginVertical: 50 }}>
|
<View style={{ alignItems: "center", marginTop: 70, marginBottom: 50 }}>
|
||||||
<Image
|
<Image
|
||||||
source={require("../../assets/images/splash-icon.png")}
|
source={require("../../assets/images/logo.png")}
|
||||||
style={{ width: 130, height: 130 }}
|
style={[{ width: 300, height: 150 }]}
|
||||||
|
width={270}
|
||||||
|
height={110}
|
||||||
/>
|
/>
|
||||||
<Text style={[Styles.textSubtitle]}>PERBEKEL DARMASABA</Text>
|
{/* <Text style={[Styles.textSubtitle]}>PERBEKEL DARMASABA</Text> */}
|
||||||
</View>
|
</View>
|
||||||
<View style={[Styles.mb30]}>
|
<View style={[Styles.mb30]}>
|
||||||
<Text style={[Styles.textDefaultSemiBold]}>Verifikasi Nomor Telepon</Text>
|
<Text style={[Styles.textDefaultSemiBold]}>Verifikasi Nomor Telepon</Text>
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ export const apiCheckPhoneLogin = async (body: { phone: string }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const apiSendOtp = async (body: { phone: string, otp: number }) => {
|
export const apiSendOtp = async (body: { phone: string, otp: number }) => {
|
||||||
const res = await axios.get(`${Constants.expoConfig?.extra?.URL_OTP}/code?nom=${body.phone}&text=*DARMASABA*%0A%0A
|
const res = await axios.get(`${Constants.expoConfig?.extra?.URL_OTP}/code?nom=${body.phone}&text=*Desa%2B*%0AMasukkan%20kode%20ini%20*${encodeURIComponent(body.otp)}*%20pada%20aplikasi%20Desa%2B%20anda.%20Jangan%20berikan%20pada%20siapapun.`)
|
||||||
JANGAN BERIKAN KODE RAHASIA ini kepada siapa pun TERMASUK PIHAK DARMASABA. Masukkan otentikasi: *${encodeURIComponent(body.otp)}*`)
|
|
||||||
return res.status
|
return res.status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user