feat : update otp

This commit is contained in:
lukman
2024-08-28 08:00:27 +08:00
parent bf35cd4592
commit 789c110616
4 changed files with 13 additions and 9 deletions

View File

@@ -16,7 +16,8 @@ export default function ViewVerification({ phone, otp, user }: IVerification) {
async function onResend() {
const code = Math.floor(Math.random() * 1000) + 1000
const res = await fetch(`https://wa.wibudev.com/code?nom=${phone}&text=${code}`)
const res = await fetch(`https://wa.wibudev.com/code?nom=${phone}&text=*DARMASABA*%0A%0A
JANGAN BERIKAN KODE RAHASIA ini kepada siapa pun TERMASUK PIHAK DARMASABA. Masukkan otentikasi: *${encodeURIComponent(code)}*`)
.then(
async (res) => {
if (res.status == 200) {
@@ -43,7 +44,7 @@ export default function ViewVerification({ phone, otp, user }: IVerification) {
toast.error(setCookies.message)
}
setLoading(false)