fix: kode otp
Deskripsi: - update fungsi random nomer kode otp 4 digit - update api version No Issues
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user