fix: kode otp

Deskripsi:
- update fungsi random nomer kode otp 4 digit
- update api version

No Issues
This commit is contained in:
amel
2025-04-11 10:43:07 +08:00
parent 5e708f0dd3
commit 080a633e48
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ function ViewLogin() {
})
const cekLogin = await cek.json()
if (cekLogin.success) {
const code = Math.floor(Math.random() * 1000) + 1000
const code = Math.floor(1000 + Math.random() * 9000)
try {
const res = await fetch(`https://wa.wibudev.com/code?nom=${cekLogin.phone}&text=*DARMASABA*%0A%0A
JANGAN BERIKAN KODE RAHASIA ini kepada siapa pun TERMASUK PIHAK DARMASABA. Masukkan otentikasi: *${encodeURIComponent(code)}*`).then(