fix: APK tap-to-sign-in - reduce to 5 taps, use correct demo credentials

This commit is contained in:
fullsizemalt 2026-01-11 17:14:59 -08:00
parent bf2fbe9b19
commit f0db9d5e5f

View file

@ -97,7 +97,7 @@ export default function LoginPage() {
className="lg:hidden relative group w-fit mb-8 select-none active:scale-95 transition-transform" className="lg:hidden relative group w-fit mb-8 select-none active:scale-95 transition-transform"
onClick={async () => { onClick={async () => {
const now = Date.now(); const now = Date.now();
const windowTime = 5000; // 5 seconds to tap 11 times const windowTime = 5000; // 5 seconds to tap 5 times
// Reset if too much time passed // Reset if too much time passed
if ((window as any).lastTap && now - (window as any).lastTap > 1000) { if ((window as any).lastTap && now - (window as any).lastTap > 1000) {
@ -107,7 +107,7 @@ export default function LoginPage() {
(window as any).lastTap = now; (window as any).lastTap = now;
(window as any).tapCount = ((window as any).tapCount || 0) + 1; (window as any).tapCount = ((window as any).tapCount || 0) + 1;
if ((window as any).tapCount >= 11) { if ((window as any).tapCount >= 5) {
(window as any).tapCount = 0; (window as any).tapCount = 0;
setIsLoading(true); setIsLoading(true);
try { try {
@ -119,8 +119,8 @@ export default function LoginPage() {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data: { data: {
email: 'tenwest@proton.me', email: 'admin@runfoo.run',
password: '2GreenSlugs!' password: 'password123'
}, },
}); });