Auto fill OTP in modal

This commit is contained in:
2026-09-23 11:56:39 +05:30
parent 0df5fae690
commit 8876e61235
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ const AnalysisResultPage = () => {
setTimeout(() => setToast({ show: false, message: '' }), 4000); setTimeout(() => setToast({ show: false, message: '' }), 4000);
} else { } else {
setShowOtpModal(true); setShowOtpModal(true);
setOtp(new Array(6).fill('')); setOtp(user.otp ? user.otp.split('') : new Array(6).fill(''));
} }
} catch (err) { } catch (err) {
setFormErrors({ phone: err.message || 'Failed to send message. Please try again.' }); setFormErrors({ phone: err.message || 'Failed to send message. Please try again.' });
+5
View File
@@ -0,0 +1,5 @@
const cp = require('child_process');
const out = cp.execSync(`curl.exe -s -X GET "https://deploy.digifox.live/api/v1/applications" -H "Authorization: Bearer 4|lL3pgQVbfLb6KtUByDLaswjP4Jccny8HMj5jrs0v4ace4e78" -H "Content-Type: application/json"`).toString();
const apps = JSON.parse(out);
const f = apps.find(a => a.name === 'limelite-frontend');
console.log(f ? f.uuid : 'Not found');