upd : login
Deskripsi: - done resend otp - done check otp - blm selesai localstorage nyimpen user id sementara No Issues
This commit is contained in:
@@ -23,8 +23,10 @@ export default function ViewLogin({ onValidate }: Props) {
|
||||
if (response.success) {
|
||||
const otp = Math.floor(1000 + Math.random() * 9000)
|
||||
const responseOtp = await apiSendOtp({ phone: `62${phone}`, otp })
|
||||
console.log(responseOtp)
|
||||
// return onValidate({ phone: `62${phone}`, otp })
|
||||
if (responseOtp == 200) {
|
||||
// localStorage.setItem('user', response.id)
|
||||
return onValidate({ phone: `62${phone}`, otp })
|
||||
}
|
||||
}
|
||||
return ToastAndroid.show(response.message, ToastAndroid.SHORT)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user